Skip to content

feat(settings): add TOGGLE_FAVORITE and INSTANT_RECORD_DOWNLOAD remote shortcut actions - #389

Closed
Pax24fr wants to merge 2 commits into
ahXN00:mainfrom
Pax24fr:feature/fav-rec
Closed

Pax24fr wants to merge 2 commits into
ahXN00:mainfrom
Pax24fr:feature/fav-rec

Conversation

@Pax24fr

@Pax24fr Pax24fr commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Before you open this PR (required)

  • I read the User Guide and checked the app's Settings and existing functions — this change isn't already possible in the app.
  • I searched existing issues/PRs and this isn't a duplicate.

What does this PR do?

Implements two new configurable remote control shortcut actions in Settings → Layout → Remote shortcuts:

  1. "Toggle favorite" (TOGGLE_FAVORITE): Toggles the favorite status of the active or currently focused content (Live TV channel, Movie, Series, or Home trending poster) across both playback and list navigation.
  2. "Record or download" (INSTANT_RECORD_DOWNLOAD):
    • Live TV: Starts or stops instant channel recording from both playback and lists/EPG. Automatically verifies provider connection limits (canRecordOn) and displays the refusal reason if connections are exhausted.
    • VOD (Movies & Series): Enqueues the selected title or episode for download.

Also adds non-intrusive bottom toast notifications (InAppToast) confirming each shortcut action and synchronizes poster card focus on the Home screen's Now Trending row (vm.navigateTrending).

Which issue / improvement does it address?

Enhances TV remote ergonomics by allowing users to map spare remote buttons (like dedicated Favorite or RECORD keys) to contextual actions across the app.

Requires OwnTV_Core PR #95

How was it tested?

  • Device(s) tested on: Real Android TV device / Chromecast with Google TV / Fire TV with physical remote control
  • What you exercised:
    • Assigned spare keys in Settings → Layout → Remote shortcuts.
    • Pressed the favorite shortcut during live playback, channel browsing, movie/series lists, and Home screen trending posters.
    • Pressed the record/download shortcut on live channels (verified recording starts/stops, REC badge/pill appears, and connection limit warnings display when budget is full) and VOD titles (download starts).
    • Verified D-pad navigation and bottom toast notifications.

Checklist

  • Builds locally (./gradlew assembleDebug) and CI is green
  • Tested on a real Android TV / Fire TV device (not emulator only) — D-pad/remote navigation works
  • No user data is wiped (Room migrations stay additive)
  • Keeps OwnTV player-only (no bundled channels/content)
  • Commit messages are clear (they become the release notes)

ahXN00 added a commit that referenced this pull request Nov 28, 2026
…, notices

Channel list over the player
- Each overlay (zap list, category browser, history, Multiview picker) re-reads
  the programmes of its visible rows on each minute (ChannelListPanel.onMinute
  -> LiveViewModel.refreshNowPlaying); rows tick with rememberMinuteClock, so
  time left and progress move while the list stays open. ensureNowPlaying also
  treats an ended programme as missing. The Live list and its preview pane tick
  too. Device: "2 h 16" -> "2 h 15 min left" across the minute, list open.

Move window: ◀ jumps to Cancel, ▶ to Save (mirrored right-to-left), carried
row or not; the buttons sat below a list that had to be walked to its end.

Live HUD: the "Live now" column is weighted and "Live next" gets 130-200 dp, so
the next title and its time no longer shrink to a few letters; slot labels
stay on one line. Wording unchanged.

Settings root: TheIntroDB's row shows the key state and today's allowance
(checked once if nothing has reported it yet); TMDB with an own key or own
server says "No daily limit".

Remote shortcuts "Add or remove favorite" and "Record or download" (rebuilt
from PR #389 by @Pax24fr; no default binding): act on the picture in full
screen, else the row under the cursor; say what happened; recording asks the
connection budget first and shows the refusal; downloads follow the profile's
switch; a whole show asks first; an episode in the player downloads itself.

Notices: the shell's notice host moved out of the full-screen player block to
the shell's top level, so shortcut, catch-up and "could not open" notices
show on every screen, not only in the player.

Stalker films: playback, external player and reconnect pass the film's portal
id (core links its file first); a film whose link fails says "Could not open
this stream." instead of nothing.

Local sync: the restore notice reads the marker once per launch, so it no
longer flashes during an auto-sync; Home reloads when the set of titles with a
resume point changes.

Docs: CHANGELOG, USER_GUIDE (shortcut actions, Move ◀▶, allowances, Kodi drm
lines).

Verified: assembleStandardRelease against core source; TV device test of the
channel list, Move, HUD, allowances, shortcuts, Kodi drm channels, a Stalker
film and the update check. Local sync not device-tested (phone not attached).

Fixes #390
Fixes #393
Fixes #394
@ahXN00 ahXN00 self-assigned this Nov 28, 2026
@ahXN00

ahXN00 commented Nov 28, 2026

Copy link
Copy Markdown
Owner

rebuild and added on 9b9402a

@ahXN00 ahXN00 closed this Nov 28, 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