forked from j62/ctbrec
1
0
Fork 0

Fix LiveJasmin HD recordings

This commit is contained in:
0xboobface 2020-02-16 15:18:38 +01:00
parent b18a32ede3
commit 110fc2a6bf
1 changed files with 1 additions and 2 deletions

View File

@ -154,7 +154,6 @@ public class LiveJasminModel extends AbstractModel {
private String getMasterPlaylistUrl() throws IOException {
loadModelInfo();
//String url = site.getBaseUrl() + "/en/stream/hls/free/" + getName();
// generate a fake guest session ID
byte[] sessionIdRandom = new byte[16];
@ -162,7 +161,7 @@ public class LiveJasminModel extends AbstractModel {
String sessionId = 'g' + StringUtil.toHexString(sessionIdRandom, 32);
String url = "https://api-gateway.dditsadn.com/v1/stream/performers/" + getName()
+ "/streams/free/formats/hls?brandId=jasmin&session=" + sessionId + "&streamName=stream_1280_720_2000";
+ "/streams/free/formats/hls?brandId=jasmin&session=" + sessionId + "&streamName=stream_1280_720_1953";
LOG.debug("Getting master playlist URL from {}", url);
Request request = new Request.Builder()
.url(url)