mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-07-15 00:43:08 +01:00
fix: jellyfin 12 fixes
This commit is contained in:
@@ -52,7 +52,7 @@ export const getAudioStreamUrl = async (
|
||||
container: mediaSource?.Container || "mp3",
|
||||
mediaSourceId: mediaSource?.Id || "",
|
||||
deviceId: api.deviceInfo.id,
|
||||
api_key: api.accessToken,
|
||||
ApiKey: api.accessToken,
|
||||
userId,
|
||||
});
|
||||
|
||||
|
||||
@@ -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/${mediaSource.Id}/Download?api_key=${api.accessToken}`,
|
||||
url: `${api.basePath}/Items/${mediaSource.Id}/Download?ApiKey=${api.accessToken}`,
|
||||
mediaSource: streamDetails?.mediaSource ?? null,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ export const getPlaybackUrl = async (
|
||||
|
||||
const queryParams = new URLSearchParams({
|
||||
deviceId: api.deviceInfo?.id || "",
|
||||
api_key: api.accessToken || "",
|
||||
ApiKey: api.accessToken || "",
|
||||
Tag: ETag || "",
|
||||
MediaSourceId: Id || "",
|
||||
});
|
||||
|
||||
@@ -73,7 +73,7 @@ const getPlaybackUrl = (
|
||||
subtitleStreamIndex: params.subtitleStreamIndex?.toString() || "",
|
||||
audioStreamIndex: params.audioStreamIndex?.toString() || "",
|
||||
deviceId: params.deviceId || api.deviceInfo.id,
|
||||
api_key: api.accessToken,
|
||||
ApiKey: api.accessToken,
|
||||
startTimeTicks: params.startTimeTicks?.toString() || "0",
|
||||
maxStreamingBitrate: params.maxStreamingBitrate?.toString() || "",
|
||||
userId: params.userId,
|
||||
|
||||
Reference in New Issue
Block a user