diff --git a/src/app/private-library/page.tsx b/src/app/private-library/page.tsx index 2d248d2..d006d30 100644 --- a/src/app/private-library/page.tsx +++ b/src/app/private-library/page.tsx @@ -9,7 +9,7 @@ import CapsuleSwitch from '@/components/CapsuleSwitch'; import PageLayout from '@/components/PageLayout'; import VideoCard from '@/components/VideoCard'; -type LibrarySourceType = 'openlist' | 'emby'; +type LibrarySourceType = 'openlist' | 'emby' | `emby:${string}` | `emby_${string}`; interface EmbySourceOption { key: string; diff --git a/src/components/VideoCard.tsx b/src/components/VideoCard.tsx index f53e430..5e437e6 100644 --- a/src/components/VideoCard.tsx +++ b/src/components/VideoCard.tsx @@ -1219,7 +1219,7 @@ const VideoCard = forwardRef(function VideoCard {config.showSourceName && source_name && !cmsData && ( (function VideoCard
(); adminConfig.EmbyConfig.Sources = adminConfig.EmbyConfig.Sources.filter((source) => { if (seenEmbyKeys.has(source.key)) { diff --git a/src/lib/emby-manager.ts b/src/lib/emby-manager.ts index 8d1b706..450d820 100644 --- a/src/lib/emby-manager.ts +++ b/src/lib/emby-manager.ts @@ -164,7 +164,7 @@ export function migrateEmbyConfig(config: AdminConfig): AdminConfig { key: 'default', name: 'Emby', enabled: oldConfig.Enabled ?? false, - ServerURL: oldConfig.ServerURL, + ServerURL: oldConfig.ServerURL || '', ApiKey: oldConfig.ApiKey, Username: oldConfig.Username, Password: oldConfig.Password,