github kushiemoon-dev/FLACidal v4.19.0

one hour ago

Security

  • The headless server now listens on 127.0.0.1 by default (new LISTEN_HOST variable) and refuses to start on any other address unless AUTH_TOKEN is set.
  • With AUTH_TOKEN set, /api, /ws and /ws/queue require a bearer token; GET /api/health and the web app stay public. The browser asks for the token on first access.
  • Without a token on a loopback address, requests with a foreign Host header are rejected.
  • The wildcard CORS policy is gone: cross-origin calls need an origin listed in the new CORS_ORIGINS variable.
  • File routes of the headless server (delete, metadata, cover, rename, convert, lyrics, analyzer by path) are confined to the download folder and the external library paths, symlinks included. Deleting is limited to .flac and .m4a files.
  • The download folder and external library paths saved through the API must be absolute and cannot be /.

Extensions

  • Settings > Extensions (English, French, German, keyboard and screen reader friendly): lists the installed extensions with version, author, category, permissions and the hosts they talk to; installs from a zip URL or from a registry (browse, then install) with a confirmation; enables an extension after a review dialog showing its permissions, author and hosts; uninstalls with a confirmation; stores the credentials an extension declares without ever showing them back. Registries can be added and removed, the official one is offered by default and can be removed for good.
  • Headless server: the same operations under /api/extensions/* (list, install, install from registry, uninstall, enable, credentials, registries, browse) and GET /api/sources/order for the order actually used. They sit behind the access token like the rest of /api. Errors come back as [extension.xxx] detail with a 400.
  • Safer extensions: an installed extension is disabled until you enable it, and that choice survives a restart. Installs only accept https zips of at most 5 MiB, never write outside the extensions folder and leave nothing behind when they fail. Calls to an extension's API require the network permission and stay on its declared host; credentials never leave that host and are no longer returned by any API.
  • Extensions in the source order: installed extensions show up in the source priority list and can be dragged like any other source. By default they sit right before Soulseek.
  • Needs FLACidal-Core v0.30.0.

Search, Files and Analyzer

  • Label filter in Search > Albums: filters the albums already found by the text search, without starting a new search, and shows the label on each card. Albums without a known label are left out while the filter is on, and counted under the field. The label comes from a detail lookup for the first 20 results (4 at a time); a failed lookup leaves that label empty and never breaks the search. Latency added by the lookups: up to 5 rounds of one request, not measured against the live proxies yet.
  • Atmos button on every Tidal track and album in Search: queues that item as Dolby Atmos (lossy .m4a) without changing the quality setting. A track with no Atmos version fails with this track has no Dolby Atmos version instead of falling back to another quality. Other sources can still be tried after a Tidal failure, as before, so a track without Atmos may end up as FLAC from another source. Without a quality in the request, nothing changes.
  • quality in the headless API: POST /api/downloads/queue, /api/downloads/single and /api/downloads/queue/album accept quality (HI_RES, HI_RES_LOSSLESS, LOSSLESS, HIGH, LOW, ATMOS); anything else is a 400 before any side effect.
  • Files lists .m4a (Atmos and AAC downloads) with a badge, and they can be analyzed and deleted. FLAC rows have no badge. The file list gains an additive codec field; mobile callers are unaffected.
  • Analyzer by batch: progress (n of total), a Cancel button that keeps the results already received, files in error listed apart with their message, and CSV or JSON export (a save dialog on the desktop, a download in the browser). Up to 5000 files per batch, analyzed min(NumCPU, 4) at a time. The batch is also used by the analysis dialog of Files.
  • Headless analyzer: POST /api/analyze/batch (progress on /ws as analyze-progress), POST /api/analyze/batch/:id/cancel and POST /api/analyze/report?format=csv|json. More than 5000 files is a 413; each path is still confined to the allowed folders and a refused path becomes an error row. CSV cells starting with =, +, - or @ are neutralised.
  • Light theme: the verdict badges of the Analyzer and the download buttons of Search now meet the contrast ratio.
  • Needs FLACidal-Core v0.32.0.

AppImage updates

  • The AppImage embeds its update information (gh-releases-zsync) and each release publishes a flacidal-x86_64.AppImage.zsync, so AppImageUpdate can fetch deltas. The .zsync name has no linux in it on purpose, to keep the in-app updater's asset choice unambiguous (covered by a test).

Web parity

  • Server file browser (English, French, German, keyboard and screen reader friendly) replaces the native pickers in the browser: Analyzer, Converter, Resampler, Lyrics and File Manager choose files and folders on the server. Tools stay inside the download folder and the library paths (GET /api/browse?scope=tools); picking a download folder or library works anywhere on the server and lists folders only (scope=folders). GET /api/browse/flac lists the FLAC files of a chosen folder.
  • Export and import of the config in the browser: GET /api/config/export and POST /api/config/import, same file format as the desktop app, the 8 credentials blanked, the user and password removed from every URL (proxy, Jellyfin, custom endpoints), and the server token never included.
  • Live logs: log entries reach the Terminal as they are written, in the browser through /ws and in the desktop app through the log event, which was only sent for a few messages before. The desktop app sends every event to the window through one queue, where repeated progress updates of a download or of the FFmpeg install are merged into the latest one. A log line is dropped from the live view only if that queue is full (it stays in the log history). The browser reloads the history after a dropped connection.
  • Discography, artist images and FFmpeg install in the browser: POST /api/discography/expand, /api/discography/queue, /api/artists/assets and /api/ffmpeg/install, sharing their code with the desktop app. FFmpeg progress comes through /ws and a second install at the same time is refused.
  • The drop zone buttons work in the browser. The buttons that open the local file manager and the in-app update are hidden there.
  • Needs FLACidal-Core v0.31.0.

Changed

  • Importing a config no longer erases the credentials already saved when the file has them blank (desktop app and browser), as long as the file sends them to the same hosts: the Qobuz credentials need the same Qobuz endpoints and proxy, the Jellyfin key the same Jellyfin URL and proxy. Otherwise they are not carried over, so a shared file cannot send them to another server. A credential present in the file still replaces the saved one.
  • A race in the /ws client counter is fixed.

New features

  • Test endpoints: a button in Settings > Status sends one reference request to every endpoint (Tidal HiFi, Qobuz proxies, Amazon proxies, self-hosted ones included) and shows the result. It runs in the background, so the interface stays responsive and a download in progress is not slowed down. Every source is probed in parallel; endpoints that share a host are probed one after the other.

  • Three reference tracks per source instead of a single one. The next reference is tried only when the previous one is not found on that endpoint. If none is found, the row shows "reference track not found" in grey rather than a failure.

  • Real error shown on failure: a failed test displays the raw message (timeout, 401, 403, 429, 5xx, challenge page, "upstream api error") under the endpoint, in red, in both Source Health and API Status. A failed test only changes what is displayed: it never blacklists an endpoint, never marks it dead and never alters how downloads are routed. A successful test restores an endpoint exactly like a real successful download does, including one marked dead or on probation.

  • Source status computed from known results only: all tested endpoints OK gives online, a mix gives degraded, all failing gives dead, none tested gives untested. Self-hosted endpoints never tested show "Self-host: untested" instead of healthy or unhealthy.

  • Headless server: new routes GET /api/sources/health, GET /api/sources/endpoints and POST /api/sources/health/probe, behind the same bearer token as the rest of /api. The server also probes its endpoints automatically 10 seconds after startup, then every 30 minutes with a 20 percent random jitter, skipping endpoints a real download used in the last 10 minutes. The web app Status tab now works in the browser instead of reporting the feature as unavailable. Amazon is not wired into the headless server yet.

  • Opening the Status tab reads in-memory state only and sends no request to any source. The two former "Check Sources" and "Check Status" buttons are replaced by the single "Test endpoints" button.

  • Default download folder: on first launch, desktop and headless create ~/Music/FLACidal and save it in the config, so Files, the download queue and GET /api/folder all agree on the folder in use. An existing choice is never changed, and DOWNLOAD_FOLDER still takes priority at runtime without being written to the file.

  • Download folder checks: a folder entered in Settings, the File Manager, POST /api/folder or POST /api/config must be absolute, exist, be a directory and be writable. A symlink to a valid folder is accepted. A folder that is already saved and has disappeared (unmounted disk) no longer blocks saving other settings.

  • Translated, actionable errors (English, French, German) for folder problems, a missing download folder, an unreachable server, an access token error and a download engine that is not ready, on Files, File Manager, Settings and the download buttons of Home. The raw message is only shown as a detail inside the translated text.

  • Browser mode: the download folder in Settings can be typed (saved on change, with the same checks and messages) now that there is no native picker. Importing a config whose folder does not exist on this machine says so instead of a generic failure.

  • File Manager: Browse now saves the chosen folder and lists it, rename templates come from the Core instead of a hard-coded list, and files that fail to rename are listed with the reason. In the browser, where there is no native picker, Browse is disabled with an explanation. The empty Lyrics and Covers tabs are gone.

  • Files at 390 px: the action bar wraps with 44 px buttons, and the table becomes stacked rows that show title, artist, album, size, date and the three row actions without horizontal scrolling. The desktop layout is unchanged.

  • Screen reader and keyboard support: the selects, toggles and icon buttons that had no name now have one, pages have proper landmarks and heading levels, the Files checkboxes can be reached with Tab and toggled with Space (the header one shows a partial selection), the sort state is announced, and every focusable control shows a focus ring.

  • Dialogs: the seven dialogs are named modal dialogs, take focus when they open, and give it back to the button that opened them when they close.

  • Notifications: an error toast is announced as an alert, other toasts as a status, and the announcement area exists before the first toast.

  • Contrast: secondary and muted text, some badges and tags now reach a 4.5:1 ratio in both the dark and light themes. An automated axe scan of the 13 views checks this at 390 px and 1024 px.

flacidal-core v0.22.0 to v0.32.0 changes included in this release

This release moves the Core from v0.22.0 (shipped in v4.18.2) to v0.32.0. Everything that changed in the Core in between:

v0.23.0

  • Rename templates containing .., an absolute path or a drive letter are rejected, and the result must stay under the original folder.
  • Templates with a / such as {artist}/{album}/{title} create the missing sub-folders.

v0.24.0

  • Endpoints start as untested and become live only after a real success or a successful probe. The previous behavior reported every fresh endpoint as live.
  • New EndpointPool.ProbeEndpoints and per-source ProbeEndpoints / ProbeProxyEndpoints with three reference tracks (Tidal, Qobuz) and three reference ISRCs (Amazon). Each endpoint records its last probe result (ok, failed, notfound, with message and latency). A failed probe never blacklists an endpoint.
  • Tier1Status gains tested, so a self-hosted pool never queried is neither healthy nor broken.
  • Soulseek reports untested until a connection test or a download succeeds.

v0.25.0

  • Tidal requests are bounded to 6 seconds and a stream failure now carries an actionable message.
  • The Qobuz fallback is guarded against a missing service or source.
  • The Soulseek login goroutine no longer dereferences closed listeners.
  • Control characters are stripped from m3u8 entries.
  • Cache, tag and rotation errors that were swallowed are now logged, and empty lists are returned as arrays instead of null.
  • config.json is written atomically with owner-only permissions.
  • The conversion output folder is created when missing and ffmpeg errors are summarized.
  • The persistQueue contract is documented and pinned.

v0.26.0

  • The download folder is validated and listing errors are reported instead of looking like an empty library.

v0.27.0

  • The file listing reads only FLAC headers and keeps a per-file cache.

v0.28.0

  • The whole application is built once in core.New(dataDir, Options), with typed accessors on Core and Core.ApplyConfig to reconfigure every component without a restart. NewCore(dataDir) stays as a wrapper.
  • The config is owned by the Core behind a lock.
  • New default source order (self-hosted first, then public sources, Soulseek last) with a one-time migration of the saved order. A saved order without Soulseek gets it appended last.
  • setSourceOrder also updates the download manager, so a Soulseek-first order activates the P2P pre-pass immediately.
  • Behavior for the mobile app: the persisted queue is restored at startup, per-track history is recorded, m3u8 generation and the Jellyfin and YouTube fallbacks follow the config from startup, workers follow concurrentDownloads, Amazon is always registered.
  • SourceManager and TidalSource availability are safe for concurrent use while settings are applied.

v0.29.0

  • New Core.TestSoulseekLogin: a connection test on a throwaway session that reports the real failure message, spaced at least 10 seconds apart to avoid a login ban.
  • New SoulseekHealth, derived from memory only: untested, then online after a success, dead when disabled or refused. Server login refusals (INVALIDPASS, INVALIDUSERNAME, INVALIDVERSION) are reported instead of ending in a timeout.
  • The native client is the only Soulseek engine. Leftover partial downloads are removed on the first session and Close no longer waits for a login or transfer in progress.
  • Removed: the sldl source and its installer, and Config.SoulseekBinaryPath (existing configs load fine and the key is dropped on the next save).

v0.30.0

  • One management entry point for extensions (list, install, install from registry, uninstall, enable, credentials, registries, browse, effective source order). The official registry is offered on first launch.
  • Extension ids are valid sourceOrder names; active extensions sit right before Soulseek by default and a chosen position survives resynchronisation.
  • Hardened install: valid ids only, no shadowing of a native source, https zips of at most 5 MiB (32 entries, 10 MiB unpacked), atomic install.
  • A newly installed extension is disabled; the enabled state is persisted. An update keeps the enabled state and credentials only while the extension talks to the same hosts, scheme and port with the same auth fields.
  • Registry installs and updates are tied to what was listed.
  • Outbound calls need the network permission and cannot change host; auth headers are dropped on a host change; API answers are capped at 5 MiB and downloaded files at 1 GiB. auth.json is written atomically with mode 0600.

v0.31.0

  • LogBuffer.Subscribe delivers each new log entry (non blocking, bounded per subscriber), which powers the live logs.

v0.32.0

  • Album labels in Tidal search results (first 20, 4 lookups at a time, a failed lookup never fails the search).
  • Per-request download quality (HI_RES, HI_RES_LOSSLESS, LOSSLESS, HIGH, LOW, ATMOS) without touching the configured one.
  • Atmos never falls back to another quality: a track without an Atmos stream fails with this track has no Dolby Atmos version.
  • .m4a downloads are listed (additive codec field) and can be deleted.
  • Cancellable batch analysis (up to 5000 files, min(NumCPU, 4) at a time) and a CSV or JSON report with neutralised formula cells.
  • DownloadManager.GetPendingJobs returns a copy of the queued jobs.

Changed

  • Default source order is now self-hosted sources first, then public sources, Soulseek last (tidal, qobuz, amazon, bandcamp, soulseek without any self-hosted instance). Until you pick an order yourself, the default follows your self-hosted endpoints. An order you choose is kept as is, Soulseek first included.
  • One-time migration of the saved order: an order that matches a previous default (Soulseek first, or right after the self-hosted sources) is replaced by the new default. Any other saved order is kept. It is logged and does not run twice.
  • A saved order without Soulseek now gets it appended last, no longer first.
  • Desktop, headless server and mobile app share one wiring in Core. The headless server now registers Deezer, Spotify, Bandcamp and Amazon, restores its persisted download queue after a restart, records per-track history, generates m3u8 playlists, honours the source order and applies settings changes without a restart.
  • Soulseek now uses the built-in client everywhere. It requires soulseekEnabled; sldl, its installer, its settings and the Docker layer are gone. soulseekBinaryPath in existing configs is ignored.
  • Soulseek health is "not tested" until a login or download succeeds, then "online". A refused login shows as dead with the server's reason.
  • The Soulseek connection test works in the desktop app and the web app without running an external process, and leaving both fields empty uses a throwaway account.

Removed

  • The sldl Soulseek engine, its one-click installer, the /api/sources/soulseek/status route and the matching Settings screens. FLACidal downloads from Soulseek without sharing files.

Fixes

  • Leftover partial Soulseek downloads are cleaned at startup, and shutdown no longer waits for a Soulseek login in progress.
  • Listing errors were hidden: an absent, unreadable or non-directory download folder looked like an empty library. Files and File Manager now show an error (and a notification) instead of "no files", and an empty folder is still reported as empty.
  • Rename templates: the File Manager offered {track}, which the Core does not substitute, so the literal text ended up in file names.
  • Endpoints and sources were shown as online before anything had been tested: every endpoint without a recorded failure was displayed in green, so Settings > Status looked healthy even when the proxies were unreachable. Never-tested endpoints now show as grey untested, and green appears only after a real success or a successful test. An unknown state is never shown as online either.
  • Soulseek showed as online as soon as it was configured: it now stays untested until a connection test or a download succeeds (the connection test in Settings counts when it uses the saved credentials).
  • The internal tidalReady flag of the connection status, always true, is removed.
  • Rename templates containing .. or an absolute path are rejected, and {artist}/{album}/{title} now creates the missing sub-folders (via flacidal-core v0.23.0).
  • Slow library listing: listing read every FLAC file whole, one after the other. It now reads only the file headers, in parallel, and keeps a per-file cache that is dropped when a file's size or modification time changes. On a generated library of 1189 files with 500 KB covers, the listing went from about 158 ms to 14 ms on a first pass and 6 ms on a repeat (files already in the OS page cache, so a cold disk will be slower).
  • Wrong source label: a file with an ISRC but no source named in its comment was labelled tidal. It is now unknown, so the source filter of the mobile library no longer lists such files under Tidal.
  • Saving Settings reset the download quality (#24): the save called SetDownloadOptions with a hardcoded LOSSLESS quality and organized folders off, overwriting the choice. The extra call is gone and App.SetDownloadOptions now merges the six received fields into the current options instead of replacing the whole struct.
  • The desktop event queue is stopped cleanly on shutdown, and the progress of a batch analysis goes through the same serialised event path as the other events.

Breaking

  • Docker users must set FLACIDAL_AUTH_TOKEN (see the README); the compose file refuses to start without it.
  • The headless server listens on 127.0.0.1 by default and refuses to start on another address unless AUTH_TOKEN is set. The wildcard CORS policy is gone: list the allowed origins in CORS_ORIGINS.
  • The sldl Soulseek engine is removed. soulseekBinaryPath in existing configs is ignored and Soulseek requires soulseekEnabled.
  • The default source order changes (self-hosted first, Soulseek last). A saved order that matched a previous default is migrated once; any other saved order is kept.
  • Extensions installed from now on arrive disabled until you enable them.

Dependencies

  • flacidal-core bumped from v0.22.0 to v0.32.0 (see above).
  • Updated echo/v4 to 4.16.1 and klauspost/compress to 1.18.7 (indirect, through Wails), which also moves golang.org/x/crypto, net, sys and text forward.
  • Frontend updated to Vite 8.3.8, Vitest 4.1.12 and source-map-js 1.2.4; minimatch is forced to ^11.0.1 through npm overrides.
  • Two echo advisories (the rate limiter and the X-Real-IP proxy header) have no patched release yet and stay open.

Development

  • New HTTP e2e suite (frontend/e2e-http/) that starts the real headless server on temporary folders, with no Wails mock and no page.route: boot of the 13 views, download folder checks, Files on real FLAC files (list, metadata, delete, rename) and the access token. Run it with npm run test:e2e:http or make test-e2e-http.
  • make test-e2e now runs from the repository root and covers both the mocked and the HTTP suites.
  • New blocking e2e job in the test workflow (mocked suite, HTTP suite, and the navigation boot test without retry), with the Playwright reports uploaded when it fails.
  • cmd/server is wired through a testable run function, shutdown now waits at most 5 seconds for open connections and 5 more for running downloads, a second Ctrl-C works while it waits and a signal during startup stops the server; its coverage went from 21 % to 91 %; the Go CI job fails below 60 %.
  • The e2e job runs on ubuntu-24.04.
  • Star history is published on its own branch instead of through a pull request.

What's Changed

Full Changelog: v4.18.2...v4.19.0

Don't miss a new FLACidal release

NewReleases is sending notifications on new releases.