mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-11-23 04:46:08 -08:00
feat(jellyfin): queue series neighbor episodes in the mpv playlist
Jellyfin playback now keeps the episodes around the playing one in mpv's playlist, so mpv's playlist keys and end-of-file advance move through the series (across seasons) in the same mpv and app session. - Queue neighbors only after the first time-pos, so startup is not slowed. - Adopt queued entries on mpv's path change without a loadfile: report the previous item stopped, then start reporting, stats, and subtitles for the new one. Runs before the immersion sync so stats metadata is recorded first. - Tell the mpv plugin which playlist paths the app manages so start-file skips subtitle rearm and overlay auto-start for them. - Add jellyfin.episodePlaylist.enabled (default on) and maxEpisodes (default 5, clamped 2-25), a rolling window centered on the current episode, under Settings > Integrations > Jellyfin > Episode Playlist. - Add a fake-Jellyfin e2e scenario covering next/prev in one session.
This commit is contained in:
41 files changed
+1450
-149
No files matched your search
@@ -210,8 +210,17 @@ function M.create(ctx)
|
||||
})
|
||||
end
|
||||
|
||||
local function is_app_managed_playlist_entry()
|
||||
local path = mp.get_property("path")
|
||||
local managed_paths = state.app_managed_playlist_paths or {}
|
||||
return type(path) == "string" and managed_paths[path] == true
|
||||
end
|
||||
|
||||
local function on_start_file()
|
||||
if should_show_overlay_loading_osd() then
|
||||
if is_app_managed_playlist_entry() then
|
||||
state.skip_managed_subtitle_rearm_once = true
|
||||
state.app_managed_playback_pending = true
|
||||
elseif should_show_overlay_loading_osd() then
|
||||
process.start_overlay_loading_osd()
|
||||
end
|
||||
if state.pending_reload_media_identity ~= nil then
|
||||
@@ -322,6 +331,7 @@ function M.create(ctx)
|
||||
state.pending_reload_reason = nil
|
||||
state.app_managed_playback_pending = false
|
||||
state.app_managed_playback_active = false
|
||||
state.app_managed_playlist_paths = {}
|
||||
end
|
||||
|
||||
local function register_lifecycle_hooks()
|
||||
|
||||
Reference in new issue
Block a user