From 168557140695218b07abd502240158f782e22a40 Mon Sep 17 00:00:00 2001 From: boolemancer <48014766+boolemancer@users.noreply.github.com> Date: Mon, 8 Jun 2026 05:59:29 -0700 Subject: [PATCH] fix(downloads): Use mediaSource.Id instead of item.Id in direct download URL (#1666) Co-authored-by: lance chant <13349722+lancechant@users.noreply.github.com> Co-authored-by: Gauvain --- utils/jellyfin/media/getDownloadUrl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/jellyfin/media/getDownloadUrl.ts b/utils/jellyfin/media/getDownloadUrl.ts index a63353b2b..989dc3656 100644 --- a/utils/jellyfin/media/getDownloadUrl.ts +++ b/utils/jellyfin/media/getDownloadUrl.ts @@ -50,7 +50,7 @@ export const getDownloadUrl = async ({ if (maxBitrate.key === "Max" && !streamDetails?.mediaSource?.TranscodingUrl) { console.log("Downloading item directly"); return { - url: `${api.basePath}/Items/${item.Id}/Download?api_key=${api.accessToken}`, + url: `${api.basePath}/Items/${mediaSource.Id}/Download?api_key=${api.accessToken}`, mediaSource: streamDetails?.mediaSource ?? null, }; }