Skip to content

Remember the TV Guide's own category per profile - #86

Merged
ahXN00 merged 1 commit into
ahXN00:mainfrom
Quad-Plex:fix/guide-remembered-category
Nov 18, 2026
Merged

ahXN00 merged 1 commit into
ahXN00:mainfrom
Quad-Plex:fix/guide-remembered-category

Conversation

@Quad-Plex

@Quad-Plex Quad-Plex commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

What

The TV Guide's category is now remembered per profile, like Live TV's, Movies' and Series' already are.

  • last_guide_category joins Keys.POSITIONS: one value per profile, carried with the other portable positions in a backup (folder ids filtered exactly as before) and dropped when the profile is.
  • lastGuideCategory / setLastGuideCategory sit beside the other three.

Why

With "TV Guide follows Live TV" off — the default — the Guide's filter lived in the app's view model only, so every start put it back on All channels and Favorites had to be picked again, even though that switch's own help text promises the Guide "keeps a category of its own". With the switch on, a pick in the Guide already reached Live TV's remembered value (#325); only the default configuration was broken.

The value is written from a pick only — a startup choice and the jump to the playing channel's folder stay placements in the app, exactly as they already do for last_live_category.

Testing

Built and exercised against the app via -Powntv.corePath: the Guide reopens on its own list after a restart, a remembered folder that no longer exists falls back to All, and the switch keeps Live TV's memory authoritative while it is on. The i18n ratchet passes (the new preference key is classified, and the backup export/import list is the only other data change).

Release note

🧭 TV Guide: remembers its own category per profile, not only when it follows Live TV

The companion TV-app PR is ahXN00/OwnTV#370 (draft until this is released and the app's owntvCore pin is bumped — it builds against core's source locally, so its CI is red until then).

"TV Guide follows Live TV" promised that with the switch off the Guide
"keeps a category of its own", but nothing stored it: the filter lived in the
view model, so every app start put the Guide back on All and the user had to
pick Favorites again. With the switch on, a pick in the Guide did reach Live
TV's memory, so only the default configuration was broken.

`last_guide_category` is stored beside the other remembered positions — one
per profile, portable in a backup the same way, and dropped with the profile.
The app writes it from a pick only; a startup choice or the jump to the
playing channel's folder stays a placement.
ahXN00 added a commit that referenced this pull request Nov 18, 2026
…gs, fixed sort on Favorites/History

Merges #86 (TV Guide remembers its own category), with one fix on top:
SettingsBackupCoverageTest now lists last_guide_category among the keys
exported per profile in the lastCategories block, as it already did for
Live TV, Movies and Series. The key is in POSITIONS, so deleting a
profile forgets it through forgetProfilePositions.

Central Kurdish (ckb) added to tools/i18n/locales.json as a catalogue-only
language (tier 2, Arabic script, right to left, no resource directory),
following the Basque entry: plural rule one/other in validate_strings.py,
the expected catalogue-only tags and the canonical Weblate code;
test_i18n_tools.py and SupportedLocalesTest counts raised by one;
SupportedLocales.kt regenerated. The next translations sync opens the
promotion pull request. Closes #82

LiveKey.hasFixedOrder: Favorites and History are ordered by moved items,
then newest added / last watched, whatever the section's sort says. Both
apps use it to show the sort as a greyed "Newest first" there (existing
string content_newest_first). The A-Z part of #85 (case-insensitive
sorting) is rebuilt separately; this is the Favorites/History rule from
#85 / ahXN00/OwnTV#369, rebuilt rather than merged.

Phone player screen lock: player_lock_screen and player_hold_to_unlock in
strings_player.xml, base plus every packaged locale.

Verified: ./gradlew build (core and player-core unit tests, lint,
instrumentation APK compile); the four i18n gates, check_weblate_format,
test_i18n_tools.py (132 OK). Both apps built against this source and
tested on a TCL TV and an OnePlus phone (release builds over the existing
install, data kept).
@ahXN00
ahXN00 merged commit 7275cd1 into ahXN00:main Nov 18, 2026
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.

2 participants