mirror of
https://github.com/streamyfin/streamyfin.git
synced 2025-08-20 18:37:18 +02:00
wip
This commit is contained in:
@@ -45,6 +45,7 @@ export const getStreamUrl = async ({
|
||||
let sessionId: string | null | undefined;
|
||||
|
||||
if (item.Type === "Program") {
|
||||
console.log("Item is of type program...");
|
||||
const res0 = await getMediaInfoApi(api).getPlaybackInfo(
|
||||
{
|
||||
userId,
|
||||
@@ -98,6 +99,15 @@ export const getStreamUrl = async ({
|
||||
}
|
||||
);
|
||||
|
||||
console.log(
|
||||
"getStreamUrl ~ getMediaInfoApi ~ getPlaybackInfo ~",
|
||||
res2.status
|
||||
);
|
||||
|
||||
if (res2.status !== 200) {
|
||||
console.error("Error getting playback info:", res2.status, res2.statusText);
|
||||
}
|
||||
|
||||
sessionId = res2.data.PlaySessionId || null;
|
||||
|
||||
mediaSource = res2.data.MediaSources?.find(
|
||||
|
||||
Reference in New Issue
Block a user