Repository navigation
feat(patches): add an offline mode that keeps downloads available - #286
Merged
josselinonduty merged 3 commits intoNov 23, 2026
Merged
josselinonduty merged 3 commits into
josselinonduty merged 3 commits into
Conversation
When the app starts without internet, open the downloads library instead of a page that cannot load, so downloaded songs stay available. Check the network in parallel with the login and bound the login request to 10s, so a link that is up but dead does not keep the window blank. Closes aunetx#274
When the app starts without internet, open the downloads library instead of a page that cannot load, so downloaded songs stay available. Check the network in parallel with the login and bound the login request to 10s, so a link that is up but dead does not keep the window blank. Known limitation: on a link that is up but carries no traffic, Chromium still reports online, so the downloads page opens but lists nothing. Closes aunetx#274
Downloaded songs stay available whatever the network does. Without internet at startup, open the downloads library instead of a page that cannot load. Once running, network changes need no reload: going offline, coming back online and rapid flapping keep the page and playback alive. Check the network in parallel with the login and bound the login request to 10s, so a link that is up but dead does not keep the window blank. Known limitation: on a link that is up but carries no traffic, Chromium still reports online, so the downloads page opens but lists nothing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #274.
What
New patch
18-offline-downloads:deezer.comfails), it opens/#/library/downloadsinstead of a page that cannot load, so downloaded songs stay available. An explicit path from the command line is left untouched.Behaviour checked
Tested on the real app in a network namespace with a switchable link:
Known limitation
On a link that is up but carries no traffic (captive portal, Wi-Fi with no uplink), Chromium still reports online. The downloads page opens, but it lists nothing until the link drops or recovers. A proper fix needs the main process to force offline emulation, which is a larger change than this patch.
The 10 s autolog timeout also applies to slow online connections: they fall back to the cached login after 10 s instead of waiting.
Tests
patch-markers.txthas the marker for the new patch;tests/run.sh unitpasses. The smoke test was not run.