forked from j62/ctbrec
1
0
Fork 0

Fix Flirt4Free recordings

This commit is contained in:
0xb00bface 2021-09-06 17:47:05 +02:00
parent 069160f3ae
commit e5676d58e7
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}
}
}