fix(jellyfin): keep the episode playlist window at least 3 long

With a 2-episode window the episode just left falls outside the next
window, so a queue run could remove it while the user stepped back to it.
mpv's IPC cannot check-and-remove atomically; a window of 3 or more always
keeps both immediate neighbors, so removals stay two steps from the
playing entry. maxEpisodes now clamps to 3..25.
This commit is contained in:
sudacode committed 2026-11-23 02:03:11 -08:00
1 parent b0446833e6
commit 172c771d97
8 files changed
+43 -8

No files matched your search

+1 -1
View File
@@ -572,7 +572,7 @@ Log in to a Jellyfin server, browse libraries, and play or cast to SubMiner. Log
| `jellyfin.directPlayPreferred` | `true` | Try direct play before transcoding |
| `jellyfin.transcodeVideoCodec` | `"h264"` | Codec requested when transcoding |
| `jellyfin.episodePlaylist.enabled` | `true` | Queue the episodes around the playing one in mpv's playlist ([episode playlist](/jellyfin-integration#episode-playlist)) |
| `jellyfin.episodePlaylist.maxEpisodes` | `5` | Most episodes in that playlist, the playing one included (2-25) |
| `jellyfin.episodePlaylist.maxEpisodes` | `5` | Most episodes in that playlist, the playing one included (3-25) |
### Discord rich presence
+1 -1
View File
@@ -1114,7 +1114,7 @@
"transcodeVideoCodec": "h264", // Preferred transcode video codec when direct play is unavailable.
"episodePlaylist": {
"enabled": true, // Add the playing episode's neighbors from its Jellyfin series to the mpv playlist, so mpv's playlist controls and end-of-file advance move between episodes. Values: true | false
"maxEpisodes": 5 // Most episodes kept in the mpv playlist, the playing one included, centered on it (2-25).
"maxEpisodes": 5 // Most episodes kept in the mpv playlist, the playing one included, centered on it (3-25).
} // Episode playlist setting.
}, // Optional Jellyfin integration for auth, browsing, and playback launch.