forked from j62/ctbrec
Fix Flirt4Free recordings
This commit is contained in:
parent
069160f3ae
commit
e5676d58e7
|
@ -263,6 +263,7 @@ public class Flirt4FreeModel extends AbstractModel {
|
|||
JSONObject json = new JSONObject(text);
|
||||
if (json.optString("command").equals("8011")) {
|
||||
JSONObject data = json.getJSONObject("data");
|
||||
LOG.trace("stream info:\n{}", data.toString(2));
|
||||
streamHost = data.getString("stream_host");
|
||||
online = true;
|
||||
isInteractiveShow = data.optString("devices").equals("1");
|
||||
|
@ -306,7 +307,8 @@ public class Flirt4FreeModel extends AbstractModel {
|
|||
if (streamHost == null) {
|
||||
throw new RuntimeException("Couldn't determine streaming server for model " + getName());
|
||||
} else {
|
||||
streamUrl = "https://manifest.vscdns.com/manifest.m3u8.m3u8?key=nil&provider=level3&secure=true&host=" + streamHost + "&model_id=" + id;
|
||||
streamUrl = "https://manifest.vscdns.com/manifest.m3u8.m3u8?key=nil&provider=highwinds&secure=true&host=" + streamHost + "&model_id=" + id;
|
||||
LOG.debug("Stream URL is {}", streamUrl);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue