Skip to content

Commit 85076c4

Browse files
committed
Fix getting default_cdn for HLS formats.
1 parent d4dd980 commit 85076c4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

main/src/main/java/com/sedmelluq/discord/lavaplayer/source/vimeo/VimeoAudioSourceManager.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,10 @@ public PlaybackFormat getPlaybackFormat(HttpInterface httpInterface, String conf
208208
}
209209

210210
if (!files.get("hls").isNull()) {
211+
JsonBrowser hls = files.get("hls");
211212
// ["akfire_interconnect_quic", "fastly_skyfire"]
212-
JsonBrowser cdns = files.get("hls").get("cdns");
213-
return new PlaybackFormat(cdns.get(cdns.get("default_cdn").text()).get("url").text(), true);
213+
JsonBrowser cdns = hls.get("cdns");
214+
return new PlaybackFormat(cdns.get(hls.get("default_cdn").text()).get("url").text(), true);
214215
}
215216

216217
throw new RuntimeException("No supported formats");

0 commit comments

Comments
 (0)