forked from j62/ctbrec
Fix LiveJasmin HD recordings
This commit is contained in:
parent
b18a32ede3
commit
110fc2a6bf
|
@ -154,7 +154,6 @@ public class LiveJasminModel extends AbstractModel {
|
||||||
|
|
||||||
private String getMasterPlaylistUrl() throws IOException {
|
private String getMasterPlaylistUrl() throws IOException {
|
||||||
loadModelInfo();
|
loadModelInfo();
|
||||||
//String url = site.getBaseUrl() + "/en/stream/hls/free/" + getName();
|
|
||||||
|
|
||||||
// generate a fake guest session ID
|
// generate a fake guest session ID
|
||||||
byte[] sessionIdRandom = new byte[16];
|
byte[] sessionIdRandom = new byte[16];
|
||||||
|
@ -162,7 +161,7 @@ public class LiveJasminModel extends AbstractModel {
|
||||||
String sessionId = 'g' + StringUtil.toHexString(sessionIdRandom, 32);
|
String sessionId = 'g' + StringUtil.toHexString(sessionIdRandom, 32);
|
||||||
|
|
||||||
String url = "https://api-gateway.dditsadn.com/v1/stream/performers/" + getName()
|
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);
|
LOG.debug("Getting master playlist URL from {}", url);
|
||||||
Request request = new Request.Builder()
|
Request request = new Request.Builder()
|
||||||
.url(url)
|
.url(url)
|
||||||
|
|
Loading…
Reference in New Issue