Skip to content

Linthra v0.2.8

Choose a tag to compare

@github-actions github-actions released this 30 Sep 06:32
· 208 commits to main since this release
6f4f17a

Linthra v0.2.8

Smarter playback, stronger offline behavior, and more reliable large libraries.

Smart pre-cache now follows the queue you are actually playing, playback picks itself back up when a remote stream drops, and very large Navidrome/Subsonic libraries can finally finish syncing. This release also fixes an "Unknown Album" grouping bug and brings FLAC playback to Android devices that have no FLAC decoder of their own.

Highlights

Smart pre-cache follows your real queue

Smart pre-cache (Settings > Cache & data) quietly caches the next few tracks so they start instantly and keep playing when the network drops. In 0.2.8 it caches what the player is really going to play next:

  • The real queue order. With shuffle on, that is the shuffled order the player already made. Under repeat-all it wraps back to the start of the queue; under repeat-one it caches nothing extra.
  • The latest queue wins. Skipping, Play next, Add to queue, starting a new album or playlist, or toggling shuffle stops the old pass after the download already in flight and moves on to the new queue.
  • Nearest tracks first. Under a tight cache limit, the track that plays next can replace a cached copy of one further away instead of being skipped. A download that turns out bigger than the space left is stopped as soon as that is clear, instead of being pulled in full and thrown away.
  • Network comes back. On Android, the current queue is cached again when the connection returns or moves from mobile data to Wi-Fi. On Linux, which has no network-status signal, that happens at the next queue change.
  • Account changes. If you sign out or switch server or account, a pre-cache that is still downloading is dropped instead of saved, and the rest of the old queue is not fetched with the new account.

Pre-cache still follows your mobile-data setting and your cache limit, and still downloads one track at a time.

Your downloads are never treated as cache

Automatic caching and the songs you choose to download are now kept strictly apart:

  • Smart pre-cache only makes room by replacing older pre-cached tracks. It never removes a song you downloaded yourself (kept offline or not), the track that is playing, or a track that plays sooner than the one it is caching.
  • Before this release, a full cache could remove an unpinned download to make room for a pre-cached track. That no longer happens.
  • If there is not enough room, pre-cache simply skips that track and it streams when it is reached.

Library rows still tell the two apart: a song you asked for reads as Downloaded, while one the app fetched ahead of time reads as Cached for offline play.

Playback recovers on its own

When a track can't be played, Linthra no longer sits on the error panel for good. A stream that drops mid-song still gets its existing quick retry first. After that, the same bounded policy runs on Android and Linux:

  1. One more try, for network and server problems. After about ten seconds it asks the server again for the same track with a fresh stream URL. A track that was playing picks up where it left off, showing "Reconnecting…"; one that never started simply loads again. That covers a Wi-Fi/LTE handover or a server that blinked. Other problems with a track (a missing local file, a sign-in the server rejects, audio the device can't decode) skip this step, since trying again seconds later would give the same answer.
  2. Then the next track. If it still fails, playback moves to the next queue entry that has not already failed, with a short, growing pause between moves. Downloaded, pre-cached and local tracks keep playing while a server is down.
  3. Then it stops. After six failures in a row, once every other entry in the queue has already failed, or at the end of the queue, the error is shown with its buttons and nothing else happens until you act.

It stays out of your way:

  • It never moves on after you pause, after headphones are unplugged, or once another app takes over audio. During a call it can prepare the next track, but starting it waits for the call to end.
  • Under repeat-one it stays on the track you chose.
  • It does not skip through the queue for an audio engine problem (every track would fail the same way), and it never starts sound on its own after a restored session or the end of a cast.
  • Anything you do (play, skip, seek, Retry, a new queue) starts fresh.
  • On Android the waits show as reconnecting, so the media notification and background playback stay up with the screen off.

Large Navidrome and Subsonic libraries

A Navidrome library of around 80,000 tracks (#680) could never finish its first sync: the whole library had to be read in one go, and any interruption threw everything away. Sync now reconciles instead of replacing:

  • The library is read in batches of about 2,000 tracks, and each batch is saved as it arrives. An interrupted first sync keeps what it already read, and an interrupted re-sync keeps your previous catalog.
  • Temporary failures and rate limiting (HTTP 429) are retried, and an album deleted on the server during the scan is skipped instead of failing the whole sync.
  • Tracks that disappeared from the server are only removed after a complete, trustworthy pass over the library.
  • An unfinished sync is remembered per account and runs again on its own when the app starts or comes back to the foreground. That run walks the library from the start again, and everything already saved stays in place while it does.
  • Signing out or switching accounts stops the old sync from writing anything further.
  • Diagnostics now show the Subsonic sync state, the number of stored Subsonic tracks and the last sync error, instead of "Library tracks: 0" with no error.

This applies to Navidrome and other Subsonic-compatible servers.

Library and queue

  • Each artist gets their own Unknown Album (#682). Tracks with no album title all used to land in one library-wide "Unknown Album", so opening or playing it (including from Android Auto) pulled in every other artist's loose tracks. Each artist now has their own, and tracks with no artist share one under Unknown Artist. Album ids are worked out when the library is read, so existing libraries pick this up after the update with no rescan.
  • Album queue actions. The album page now offers Play next and Add to queue beside Play and Shuffle, so you can line an album up behind what is already playing. Albums are queued once, in order, as a single action.

Android: FLAC on more devices

  • Some older devices, such as the Android 7-era Echo Show 8 in #674, have no FLAC decoder of their own. On those, FLAC tracks looked like they were playing but made no sound. Linthra now includes a built-in FLAC decoder as a fallback. Devices with their own decoder keep using it first; the built-in one only steps in when the device's decoder is missing or turns a particular file down.
  • Audio that nothing on the device can decode is now caught as an unsupported format instead of silently "playing". Like any other track that can't play, it is skipped when there is another track to move to, and the error is shown when there isn't.
  • Diagnostics now include the Android SDK level, the CPU architecture (ABI), how FLAC is being decoded and the kind of playback failure.

Linux desktop

  • The window has a real title everywhere. On Wayland sessions (GNOME and KDE Plasma alike) and on GNOME under X11, Linthra's window used to reach the desktop with no title, so task switchers, overview labels, window rules and screen readers had nothing to show. It is now set on every session.
  • Keyboard shortcuts window. Ctrl+/ (or "Show all shortcuts" in the Keyboard shortcuts settings) lists every shortcut with the key it is bound to right now, and updates live when you remap one.
  • linthra --version prints the app version and exits without opening a window.

GitHub Sponsor APK

  • Disconnect GitHub is now available whenever a GitHub token is stored, including when the account is not an active sponsor or the check at launch failed. Before, those users had no way to remove the stored token short of clearing app data.

Privacy

  • Every fixed network destination written into the code Linthra ships (host names, IP addresses and mail domains, across the Dart code, the Android app, the Linux runner, packaging metadata, native code and vendored packages) now has to be listed with its purpose in the repository's network-destination inventory. A new host, a known host showing up in a new file, or an entry that no longer matches anything fails CI (#504).
  • Servers you type in are your data, not code, and are never affected by this check.
  • The privacy policy now names the two outside services Linthra itself can contact, and when: plex.tv, only if you choose "Connect with Plex", and GitHub, only in the GitHub Sponsor APK after you choose "Connect GitHub". The F-Droid, Flatpak and other builds never contact GitHub on their own.
  • A new PRIVACY_AUDIT.md records what is checked automatically, what was reviewed by hand, what is still open in #504, and the limits of each.

These checks describe the code in this repository. They are not a claim about what the servers you connect to do.

Casting

Casting remains temporarily unavailable while the receiver-trust security work in #575 is completed. This release does not restore it, and there is no fallback or bypass.

Groundwork for bringing it back safely did land: a short-lived relay on your own device that serves cast media to the receiver, so the receiver never sees your server's credential, and a written design for a replacement Cast client. Both stay switched off in shipped builds.

Under the hood

  • Toolchain: Flutter 3.47.5 (Dart 3.13.4) and Android Gradle Plugin 8.11.1.
  • Flatpak: every build source is pinned to an immutable reference, with a check that keeps the manifest, its template, the Flutter version and the lockfile in step (#443). The Flatpak launch smoke now also checks that the installed package reports the expected version.
  • Release pipeline: the GitHub Sponsor APK is now built in the same release run, from the same commit and with the same signing decision as the other Android artifacts, and gets the same Cast containment check before upload.
  • Linux testing: credential-free integration tests now cover the Jellyfin, Navidrome/Subsonic and Plex streaming chain end to end against local fake servers (#424), plus a repeatable GNOME and KDE Plasma compatibility pass (#458) and an Orca screen-reader checklist (#461).
  • Audio CD groundwork (Linux): Linthra can now detect optical drives and read an audio CD's track list and CD-Text (#631, parts 1 and 2 of 5). Nothing in the app uses this yet: there is no CD playback or ripping in this release, and it is not available inside the Flatpak.
  • Maintenance: CI now reports when the scheduled dependency updaters stop working, and the F-Droid license follow-up (#659) is documented and ready.

Known limitations

  • Casting is still unavailable (#575).
  • On Linux, pre-cache does not react to the network coming back until the next queue change.
  • An interrupted Navidrome/Subsonic sync starts its walk over from the beginning when it runs again. What it already saved is kept, but it does not resume from the exact point where it stopped.
  • The audio CD work is not user-facing yet.
  • Linthra is not on Flathub or Google Play. The Flatpak is a GitHub Release download.
  • F-Droid's canonical metadata may still show MPL-2.0 as the license until #659 lands there.

Licensing

Linthra's current project license is AGPL-3.0-or-later. Releases through v0.2.4 remain under the MPL-2.0 terms under which they were published; v0.2.5 and later, including v0.2.8, are released under AGPL-3.0-or-later.

Android and F-Droid

Canonical Android version:

  • versionName: 0.2.8
  • base versionCode: 208999

F-Droid split-ABI version codes:

  • armeabi-v7a: 2089991
  • arm64-v8a: 2089992
  • x86_64: 2089993

F-Droid builds from source at the release tag on its own infrastructure and signs with its own key. GitHub APKs and F-Droid packages use different signing keys, so keep updating from the same source you originally installed from.

Linthra is not publicly available on Google Play.

Release artifacts

The stable GitHub Release is expected to carry:

  • the signed universal Android APK, the three per-ABI APKs and the AAB;
  • the GitHub Sponsor APK;
  • the native Linux x64 archive;
  • the standalone Flatpak bundle, targeting GNOME Platform 51 (installing it can fetch that runtime from Flathub when it is not already present).

Upgrade notes

No manual migration is needed. Your libraries, downloads, queue, server sessions and settings stay as they are.

  • The Unknown Album change applies as soon as the library is read, with no rescan.
  • If a large Navidrome/Subsonic sync never finished before, the next sync saves what it reads as it goes, and runs again on its own if it is interrupted.
  • Songs you downloaded stay downloaded. Only pre-cached copies are ever replaced automatically.

Thanks

Thanks to everyone who tested, reported and reviewed this cycle, especially the reports behind #674 (silent FLAC on an older Android device), #680 (a Navidrome library too big to sync) and #682 (the shared Unknown Album). Real-world reports like these are what make Linthra hold up outside a test suite.