From 28adcbd7d0377ec7e9977267d08cbbf7a05e2944 Mon Sep 17 00:00:00 2001 From: WonderAliceUwU Date: Sat, 12 Sep 2026 22:53:03 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20use=20media=20browser=20a?= =?UTF-8?q?uthorization=20for=20jellyfin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/lib/services.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/lib/services.ts b/server/lib/services.ts index 0c02538..d84ba5e 100644 --- a/server/lib/services.ts +++ b/server/lib/services.ts @@ -2947,7 +2947,7 @@ export async function setEpisodeWatchState(config: AppConfig, payload: EpisodeWa method: payload.watched ? 'POST' : 'DELETE', headers: { Accept: 'application/json', - 'X-Emby-Token': config.jellyfin.apiKey + Authorization: `MediaBrowser Token="${config.jellyfin.apiKey}"` } }) @@ -2971,7 +2971,7 @@ export async function proxyJellyfinImage( const path = `/${collection}/${encodeURIComponent(itemId)}/Images/${encodeURIComponent(candidate)}?quality=90&maxWidth=${maxWidth}&tag=${encodeURIComponent(tag)}`; const response = await fetch(`${config.jellyfin.baseUrl}${path}`, { headers: { - 'X-Emby-Token': config.jellyfin.apiKey + Authorization: `MediaBrowser Token="${config.jellyfin.apiKey}"` } }); @@ -3576,7 +3576,7 @@ async function getJellyfinUsersFromConfig(baseUrl: string, apiKey: string): Prom `${baseUrl}/Users`, { headers: { - 'X-Emby-Token': apiKey + Authorization: `MediaBrowser Token="${apiKey}"` } } ); @@ -3769,7 +3769,7 @@ async function testJellyfin(config: AppConfig): Promise { try { await fetchJson(`${config.jellyfin.baseUrl}/System/Info`, { headers: { - 'X-Emby-Token': config.jellyfin.apiKey + Authorization: `MediaBrowser Token="${config.jellyfin.apiKey}"` } }); return { key: 'jellyfin', label: 'Jellyfin', ok: true, message: 'Connected' }; @@ -3888,7 +3888,7 @@ async function jellyfinFetch(config: AppConfig, pathWithQuery: string): Promi `${config.jellyfin.baseUrl}${pathWithQuery.startsWith('/') ? pathWithQuery : `/${pathWithQuery}`}`, { headers: { - 'X-Emby-Token': config.jellyfin.apiKey + Authorization: `MediaBrowser Token="${config.jellyfin.apiKey}"` } } );