fix(config): remove trailing commas from config.example.jsonc

- Strip trailing commas throughout both config.example.jsonc copies
- Reformat inline arrays to multi-line for JSON strictness
- Update Jellyfin subtitle preload and playback launch tests and impl
This commit is contained in:
2026-05-22 02:07:10 -07:00
parent fd6a11118c
commit 3de7ed8b54
5 changed files with 77 additions and 12 deletions
@@ -174,9 +174,7 @@ function hasExpectedExternalSubtitleTracks(
return true;
}
const loadedExternalFilenames = new Set(
tracks
.filter((track) => track.externalFilename)
.map((track) => track.externalFilename),
tracks.filter((track) => track.externalFilename).map((track) => track.externalFilename),
);
return expectedExternalFilenames.every((filePath) => loadedExternalFilenames.has(filePath));
}
@@ -247,9 +245,8 @@ export function createPreloadJellyfinExternalSubtitlesHandler(deps: {
clientInfo: JellyfinClientInfo;
itemId: string;
}): Promise<void> => {
cleanupActiveCache();
try {
cleanupActiveCache();
const tracks = await deps.listJellyfinSubtitleTracks(
params.session,
params.clientInfo,