Skip to content

Search label filter and Atmos, .m4a in Files, batch analyzer, AppImage zsync - #31

Merged
kushiemoon-dev merged 8 commits into
mainfrom
feat/search-files-batch-analyzer
Nov 20, 2026
Merged

kushiemoon-dev merged 8 commits into
mainfrom
feat/search-files-batch-analyzer

Conversation

@kushiemoon-dev

@kushiemoon-dev kushiemoon-dev commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

Needs flacidal-core v0.32.0 (published). Rebased on main after #27.

What

  • Search > Albums: the label is shown on each card and can be filtered. The filter only narrows the albums already found by the text search and does not start a new search. Albums with no known label are left out while it is on and counted under the field.
  • Atmos button on Tidal tracks and albums: queues Dolby Atmos (lossy .m4a) without changing the quality setting. If Tidal has no Atmos stream the download fails explicitly; other sources can still be tried afterwards, as before.
  • Files lists .m4a files with a badge (Dolby Atmos or M4A), and they can be analyzed and deleted.
  • Analyzer: batches of up to 5000 files with progress, cancel (keeps the results already received), failing files listed apart, and CSV or JSON export. Concurrency is min(NumCPU, 4). Headless routes: POST /api/analyze/batch, /api/analyze/batch/:id/cancel, /api/analyze/report. A bigger batch gets a 413 and every path stays confined to the allowed folders.
  • HTTP API: quality is accepted on /api/downloads/queue, /single and /queue/album; an unknown value is a 400 before any side effect.
  • AppImage: embeds gh-releases-zsync update information and each release uploads flacidal-x86_64.AppImage.zsync. The name has no linux in it so the in-app updater still finds one asset; a test covers that.
  • Batch progress goes through the serialised event path added in feat: web parity for the headless server #27, one event per file, none merged.
  • Light theme: verdict badges and the pink download buttons now meet the contrast ratio.

Notes

  • /api/analyze/batch enriches results like the desktop analyzer does (BPM, key, tags, Deezer lookup). The older /api/analyze/multiple is still read-only.
  • A batch keeps running if the client disconnects.
  • The label lookups add up to 20 proxy requests per albums search; latency not measured yet.

Testing

  • go vet and go test -race -cover ./internal/... ./cmd/... pass (cmd/server 86.6%).
  • Frontend: lint, svelte-check, vitest, mocked e2e (146) and HTTP e2e (49) pass; axe reports no serious or critical violation on the changed screens in both themes.
  • build.yml run on this branch via workflow_dispatch is green; the AppImage reports gh-releases-zsync|kushiemoon-dev|FLACidal|latest|flacidal-x86_64.AppImage.zsync and the .zsync is in the artifact.

Still to do by hand

  • Screen reader pass (Orca) on Search, Files and the Analyzer.
  • Label lookup latency against the live proxies.

QueueDownloads, QueueSingleDownload and QueueArtistAlbum, and the matching
HTTP routes, take an optional quality (HI_RES, HI_RES_LOSSLESS, LOSSLESS,
HIGH, LOW, ATMOS). An unknown value is a 400 before any side effect.

The file list now includes .m4a files and deleting accepts .m4a as well as
.flac. Requires flacidal-core with these methods.
The analyzer runs up to 5000 files per batch with bounded concurrency,
streams progress as analyze-progress events (Wails and /ws), can be
cancelled while keeping the results already received, lists failing files
apart and exports CSV or JSON. Headless routes: POST /api/analyze/batch,
/api/analyze/batch/:id/cancel and /api/analyze/report. Larger batches get
a 413 and every path stays confined to the allowed folders.

The analysis dialog of Files uses the same batch. Verdict badges now meet
the contrast ratio in the light theme.
Albums show their label and can be filtered by it, without starting a new
search. Albums with no known label are counted separately. Tracks and
albums get an Atmos button that queues Dolby Atmos without changing the
quality setting.
Atmos and AAC downloads are listed with a badge, can be analyzed and
deleted. FLAC rows are unchanged.
The AppImage carries gh-releases-zsync update information and each release
uploads flacidal-x86_64.AppImage.zsync. The file name avoids the word
linux so the in-app updater still finds a single matching asset, which a
test covers.
Batch analysis progress went straight to the Wails runtime, bypassing the
serial emitter that keeps ExecuteJS calls from overlapping. It now uses
emitEvent, with no coalescing since every row matters.
@kushiemoon-dev
kushiemoon-dev force-pushed the feat/search-files-batch-analyzer branch from 15338ef to f01949e Compare November 20, 2026 15:58
@kushiemoon-dev
kushiemoon-dev changed the base branch from feat/web-parity to main November 20, 2026 15:58
@kushiemoon-dev
kushiemoon-dev merged commit a233078 into main Nov 20, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant