This commit is contained in:
Ovler 2023-10-16 11:09:13 +08:00
parent eb9e4bd6e9
commit 5432654d9f
No known key found for this signature in database
GPG Key ID: 87C2223333333333

View File

@ -221,7 +221,7 @@ public class JfClient {
String transcodingUrl = mediaSource.get("TranscodingUrl").getAsString();
// 检查TranscodingUrl是否为空
if (transcodingUrl != null && !transcodingUrl.isEmpty()) {
playurl = config.getJellyfinUrl() + transcodingUrl;
playurl = transcodingUrl;
}
}
} catch (Exception e) {
@ -233,6 +233,8 @@ public class JfClient {
// if playurl is still "", return config.getJellyfinUrl() + "/videos/" + itemid + "/stream.mp4?static=true&DeviceId=" + DeviceId + "&api_key=" + AccessToken;
if (playurl == null || playurl.isEmpty()) {
playurl = config.getJellyfinUrl() + "/videos/" + itemid + "/stream.mp4?static=true&DeviceId=" + DeviceId + "&api_key=" + AccessToken;
} else {
playurl = config.getJellyfinUrl() + playurl;
}
return playurl; // Return the playurl variable