Repository navigation
Conversation
Poag
force-pushed
the
feature/auto-download-continue-watching
branch
2 times, most recently
from
September 22, 2026 07:54
88f576f to
1572891
Compare
Poag
force-pushed
the
feature/auto-download-continue-watching
branch
2 times, most recently
from
October 12, 2026 05:51
0ae85bd to
be78762
Compare
Poag
force-pushed
the
feature/auto-download-continue-watching
branch
from
October 19, 2026 05:49
be78762 to
2733eb4
Compare
Poag
force-pushed
the
feature/auto-download-continue-watching
branch
from
October 26, 2026 05:50
2733eb4 to
4dca94f
Compare
Poag
force-pushed
the
feature/auto-download-continue-watching
branch
from
November 2, 2026 06:49
4dca94f to
a7dbe65
Compare
Poag
force-pushed
the
feature/auto-download-continue-watching
branch
2 times, most recently
from
November 23, 2026 06:48
cfe9723 to
b8094c5
Compare
Adds a Settings toggle that keeps whatever's on each server's Continue Watching shelf downloaded: new items are queued as they appear, and items are removed once they drop off (unless still needed by a manual download or another sync rule). Implemented as a hidden, system-managed sync rule per connected server so it reuses the existing Sync Rule engine's queueing, exclusivity-aware deletion, cooldown/network gating, and watch-event trigger wiring instead of adding a parallel pipeline.
The debounced watch-event fast path only reacted to `watched` events, so a rule's targets could shrink (an item explicitly removed from Continue Watching) without a quick re-run — only the next periodic pass would notice. Widen the listener to also cover `removedFromContinueWatching`, the other change type that can shrink a rule's target set. `progressUpdate` stays excluded since it fires on every playback tick.
Adopting a freshly-enabled Continue Watching shelf could try to queue every in-progress show at once — each queue op does several sequential awaited network round trips (metadata, parent metadata, artwork), so a shelf with a dozen-plus shows in progress stalled the app for the better part of a minute on first activation (reported after live device testing). Cap new downloads to 3 per pass; anything past that stays untouched (not mistaken for a drop) and gets picked up on the next pass instead of blocking on one big burst.
Regenerate slang output, pass profileGeneration to _deleteDownload, and update sync rule executor tests for the new required arguments. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VraKLsJqoSspw2a8bvrCT7
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QxrtCcordMnwc2txSoonvF
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QxrtCZpEsBakzYDbvVuZe9
Poag
force-pushed
the
feature/auto-download-continue-watching
branch
from
November 30, 2026 07:08
b8094c5 to
3d7ef50
Compare
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.
What this does
Adds a Settings toggle that keeps each server's Continue Watching shelf downloaded automatically:
Instead of bolting on a separate pipeline, this reuses the existing Sync Rule engine as a hidden, system-managed rule per connected server. That means it gets the same queueing, exclusivity-aware deletion, cooldown/network gating, and watch-event triggers for free.
Notable details
removedFromContinueWatching, not justwatched— otherwise a shrinking rule (item explicitly removed from the shelf) would sit stale until the next periodic pass.progressUpdateis still excluded since it fires on every tick.Checklist (per CONTRIBUTING.md)
dart format .flutter analyzedart run slang— regeneratedstrings.g.dart/strings_en.g.dartflutter test— addeddownload_provider_test.dartandsync_rule_executor_test.darten.i18n.json; other locales left with empty values for translators to fill in, per the i18n guidelinesAI-assisted contributions
This PR was AI-assisted using Claude Sonnet 5.