mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-11-23 04:46:08 -08:00
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.
47 lines
1.5 KiB
Lua
47 lines
1.5 KiB
Lua
local M = {}
|
|
|
|
function M.new()
|
|
return {
|
|
overlay_running = false,
|
|
texthooker_running = false,
|
|
overlay_process = nil,
|
|
binary_available = false,
|
|
binary_path = nil,
|
|
detected_backend = nil,
|
|
auto_play_ready_gate_armed = false,
|
|
auto_play_ready_should_resume_playback = false,
|
|
auto_play_ready_timeout = nil,
|
|
auto_play_ready_osd_timer = nil,
|
|
auto_play_ready_signal_seen = false,
|
|
auto_play_ready_initial_pause_ownership_consumed = false,
|
|
-- The running overlay has reported its content ready at least once; warm playlist advances
|
|
-- reuse that window, so they must not restart the loading spinner (#315).
|
|
overlay_content_ready_seen = false,
|
|
overlay_loading_osd_active = false,
|
|
overlay_loading_osd_timer = nil,
|
|
overlay_loading_osd_deadline = nil,
|
|
overlay_loading_osd_frame = 1,
|
|
pending_visible_overlay_hide_timer = nil,
|
|
pending_visible_overlay_hide_generation = 0,
|
|
suppress_ready_overlay_restore = false,
|
|
force_ready_overlay_restore = false,
|
|
visible_overlay_requested = nil,
|
|
last_visible_overlay_toggle_time = nil,
|
|
current_media_identity = nil,
|
|
current_media_title = nil,
|
|
pending_reload_media_identity = nil,
|
|
pending_reload_media_title = nil,
|
|
pending_reload_reason = nil,
|
|
app_managed_playback_pending = false,
|
|
app_managed_playback_active = false,
|
|
app_managed_playlist_paths = {},
|
|
auto_start_retry_generation = 0,
|
|
session_binding_generation = 0,
|
|
session_binding_names = {},
|
|
session_numeric_binding_names = {},
|
|
session_numeric_selection = nil,
|
|
}
|
|
end
|
|
|
|
return M
|