diff --git a/app.json b/app.json index 2b194d5f..3f3baa81 100644 --- a/app.json +++ b/app.json @@ -2,7 +2,7 @@ "expo": { "name": "Streamyfin", "slug": "streamyfin", - "version": "0.20.0", + "version": "0.20.1", "orientation": "default", "icon": "./assets/images/icon.png", "scheme": "streamyfin", diff --git a/bun.lockb b/bun.lockb index 6868af77..f2cf4f60 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/eas.json b/eas.json index 18b03a84..9da08286 100644 --- a/eas.json +++ b/eas.json @@ -22,13 +22,13 @@ } }, "production": { - "channel": "0.20.0", + "channel": "0.20.1", "android": { "image": "latest" } }, "production-apk": { - "channel": "0.20.0", + "channel": "0.20.1", "android": { "buildType": "apk", "image": "latest" diff --git a/modules/vlc-player/expo-module.config.json b/modules/vlc-player/expo-module.config.json index 181ae212..2fbd3167 100644 --- a/modules/vlc-player/expo-module.config.json +++ b/modules/vlc-player/expo-module.config.json @@ -1,5 +1,5 @@ { - "platforms": ["ios"], + "platforms": ["ios", "tvos", "android", "web"], "ios": { "modules": ["VlcPlayerModule"] }, diff --git a/package.json b/package.json index 90faf9fa..dc0a1845 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "@expo/vector-icons": "^14.0.3", "@futurejj/react-native-visibility-sensor": "^1.3.4", "@gorhom/bottom-sheet": "^4", - "@jellyfin/sdk": "^0.10.0", + "@jellyfin/sdk": "^0.11.0", "@kesha-antonov/react-native-background-downloader": "^3.2.1", "@react-native-async-storage/async-storage": "1.23.1", "@react-native-community/netinfo": "11.3.1", diff --git a/providers/JellyfinProvider.tsx b/providers/JellyfinProvider.tsx index 63ed727e..28d99215 100644 --- a/providers/JellyfinProvider.tsx +++ b/providers/JellyfinProvider.tsx @@ -52,7 +52,7 @@ export const JellyfinProvider: React.FC<{ children: ReactNode }> = ({ setJellyfin( () => new Jellyfin({ - clientInfo: { name: "Streamyfin", version: "0.20.0" }, + clientInfo: { name: "Streamyfin", version: "0.20.1" }, deviceInfo: { name: Platform.OS === "ios" ? "iOS" : "Android", id }, }) ); @@ -86,7 +86,7 @@ export const JellyfinProvider: React.FC<{ children: ReactNode }> = ({ return { authorization: `MediaBrowser Client="Streamyfin", Device=${ Platform.OS === "android" ? "Android" : "iOS" - }, DeviceId="${deviceId}", Version="0.20.0"`, + }, DeviceId="${deviceId}", Version="0.20.1"`, }; }, [deviceId]); diff --git a/utils/jellyfin/media/getStreamUrl.ts b/utils/jellyfin/media/getStreamUrl.ts index 5f79cbe2..c2eb509c 100644 --- a/utils/jellyfin/media/getStreamUrl.ts +++ b/utils/jellyfin/media/getStreamUrl.ts @@ -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(