chore: add project management metadata and remaining repository files

This commit is contained in:
2026-02-22 21:43:43 -08:00
parent 64020a9069
commit 4ebabbe639
37 changed files with 7531 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import type { LauncherJellyfinConfig } from '../types.js';
export function parseLauncherJellyfinConfig(root: Record<string, unknown>): LauncherJellyfinConfig {
const jellyfinRaw = root.jellyfin;
if (!jellyfinRaw || typeof jellyfinRaw !== 'object') return {};
const jellyfin = jellyfinRaw as Record<string, unknown>;
return {
enabled: typeof jellyfin.enabled === 'boolean' ? jellyfin.enabled : undefined,
serverUrl: typeof jellyfin.serverUrl === 'string' ? jellyfin.serverUrl : undefined,
username: typeof jellyfin.username === 'string' ? jellyfin.username : undefined,
defaultLibraryId:
typeof jellyfin.defaultLibraryId === 'string' ? jellyfin.defaultLibraryId : undefined,
pullPictures: typeof jellyfin.pullPictures === 'boolean' ? jellyfin.pullPictures : undefined,
iconCacheDir: typeof jellyfin.iconCacheDir === 'string' ? jellyfin.iconCacheDir : undefined,
};
}