mirror of
https://github.com/sifacaii/VlcJellyfin
synced 2025-05-26 06:20:20 -04:00
upd
This commit is contained in:
parent
eb9e4bd6e9
commit
5432654d9f
@ -221,7 +221,7 @@ public class JfClient {
|
|||||||
String transcodingUrl = mediaSource.get("TranscodingUrl").getAsString();
|
String transcodingUrl = mediaSource.get("TranscodingUrl").getAsString();
|
||||||
// 检查TranscodingUrl是否为空
|
// 检查TranscodingUrl是否为空
|
||||||
if (transcodingUrl != null && !transcodingUrl.isEmpty()) {
|
if (transcodingUrl != null && !transcodingUrl.isEmpty()) {
|
||||||
playurl = config.getJellyfinUrl() + transcodingUrl;
|
playurl = transcodingUrl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} 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 is still "", return config.getJellyfinUrl() + "/videos/" + itemid + "/stream.mp4?static=true&DeviceId=" + DeviceId + "&api_key=" + AccessToken;
|
||||||
if (playurl == null || playurl.isEmpty()) {
|
if (playurl == null || playurl.isEmpty()) {
|
||||||
playurl = config.getJellyfinUrl() + "/videos/" + itemid + "/stream.mp4?static=true&DeviceId=" + DeviceId + "&api_key=" + AccessToken;
|
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
|
return playurl; // Return the playurl variable
|
||||||
|
Loading…
Reference in New Issue
Block a user