Skip to content

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

Closed
Pax24fr wants to merge 1 commit into
ahXN00:mainfrom
Pax24fr:feature/fav-rec-shortcuts
Closed

Pax24fr wants to merge 1 commit into
ahXN00:mainfrom
Pax24fr:feature/fav-rec-shortcuts

Conversation

@Pax24fr

@Pax24fr Pax24fr commented Nov 23, 2026 •

Copy link
Copy Markdown

Description

Adds two new configurable remote shortcut actions to RemoteShortcutAction:

  1. TOGGLE_FAVORITE: Toggles the favorite status of the active or currently focused content (Live TV channel, Movie, Series, or Home trending item).
  2. INSTANT_RECORD_DOWNLOAD: Triggers instant live recording on channels (with provider connection budget verification) or starts download on VOD titles (Movies & Series).

Modified Files

  • core/src/main/java/tv/own/owntv/core/settings/RemoteShortcuts.kt: Added TOGGLE_FAVORITE and INSTANT_RECORD_DOWNLOAD enum entries.
  • core/src/main/res/values/strings_settings.xml: Added translatable string resources for action labels and notification toast templates.

Related PR

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

Stalker films (ahXN00/OwnTV#390)
- StreamUrlResolver.resolve takes the film's portal id and lists the film's
  files first (get_ordered_list movie_id=<id>&season_id=0&episode_id=0), then
  create_links the first file's cmd, as a MAG box does. No file listed, or the
  lookup failing for any reason but the session, links the catalogue cmd as
  before. DownloadEngine passes the film's remoteId too.
- Unit tests: file linked, no file, lookup timeout, no id, direct-play URL.
- Device: on a Stalker portal that lists no file the fallback links the
  catalogue cmd and the film plays; costs ~0.7 s per film open there.

DRM: inputstream.adaptive 21 playlist lines (ahXN00/OwnTV#393)
- DrmConfig.fromKodiProps reads `drm` (JSON, key systems by priority, keyids /
  server_url / req_headers) and `drm_legacy` (system|keys-or-URL|headers) ahead
  of license_type/license_key, which stay the fallback. A request body, query
  parameters or an unwrapper we do not build drop the declaration as before.
- Unit tests incl. the reporter's SIC entries; device: both ClearKey forms play
  on ExoPlayer from a fresh open, 0 dropped frames.

Local sync (ahXN00/OwnTV#394)
- AutoSyncTransfer, after a merge import, loads the episodes of up to 8 shows
  that synced records still wait on (UserDataResolver.showsWithPendingEpisodes,
  SeriesRepository.loadEpisodesForPendingRecords), so those records resolve.
- SettingsRepository: the restore marker is read once per launch
  (restoreMarkerAtLaunch / dismissLaunchRestoreMarker); every import still sets
  and clears it, which made a live watcher flash the notice during each sync.

Remote shortcuts (rebuilt from PR #95)
- RemoteShortcutAction.TOGGLE_FAVORITE and RECORD_OR_DOWNLOAD. No default
  binding: users assign them in Remote shortcuts.

Update check
- A 5xx from GitHub is asked again up to twice (Retry-After honoured, 10 s cap);
  any other code fails at once. UpdateCheckRetryTest.

Strings (all 28 packaged locales): favourite added/removed, recording stopped,
the two shortcut labels, "No daily limit"; player_external_could_not_open now
also names a film that cannot open. safe_literals classified; baseline
unchanged.

Already fixed: #94 (fallback to ExoPlayer after an mpv hard reset) shipped in
core-1.0.72 with MpvEngineTest.filmMpvCannotOpenGoesToExoPlayer.

Verified: :core and :player-core unit tests, i18n gates + Weblate format, TV
and Mobile release builds against this core, TV device test.

Closes #94
@ahXN00 ahXN00 self-assigned this Nov 28, 2026
@ahXN00

ahXN00 commented Nov 28, 2026

Copy link
Copy Markdown
Owner

rebuild and added on 59307b7

@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