feat(jellyfin): queue series neighbor episodes in the mpv playlist (#338)

This commit is contained in:
sudacode authored and GitHub committed 2026-11-24 01:45:27 -08:00
1 parent 713cdb3ef8
commit 926e6b047e
45 files changed
+2295 -197

No files matched your search

@@ -50,7 +50,11 @@ export type JellyfinRuntimeComposerOptions = ComposerInputs<{
>[0];
playJellyfinItemInMpvMainDeps: Omit<
PlayJellyfinItemMainDeps,
'ensureMpvConnectedForPlayback' | 'preloadExternalSubtitles'
| 'ensureMpvConnectedForPlayback'
| 'preloadExternalSubtitles'
| 'reportPlaybackSuperseded'
| 'waitForTransitionReports'
| 'trackPlaybackStart'
>;
remoteComposerOptions: Omit<
JellyfinRemoteComposerOptions,
@@ -157,11 +161,18 @@ export function composeJellyfinRuntimeHandlers(
preloadExternalSubtitles: (params) => {
void preloadJellyfinExternalSubtitles(params);
},
// The remote handlers are built below and share the report tracker with the stop handler.
reportPlaybackSuperseded: (playback) => reportJellyfinPlaybackSuperseded(playback),
waitForTransitionReports: () => waitForJellyfinTransitionReports(),
trackPlaybackStart: (report, playback) => trackJellyfinPlaybackStart(report, playback),
});
const {
reportJellyfinRemoteProgress,
reportJellyfinRemoteStopped,
reportJellyfinPlaybackSuperseded,
waitForJellyfinTransitionReports,
trackJellyfinPlaybackStart,
handleJellyfinRemotePlay,
handleJellyfinRemotePlaystate,
handleJellyfinRemoteGeneralCommand,