fix misplaced condition
This commit is contained in:
parent
f549580526
commit
1f26371283
|
@ -315,7 +315,8 @@ public class ChaturbateModel extends AbstractModel {
|
|||
log.trace("Raw stream info for model {}: {}", getName(), content);
|
||||
streamInfo = mapper.readValue(content, StreamInfo.class);
|
||||
|
||||
if (streamInfo.cmaf_edge && streamInfo.url.contains("playlist.m3u8")) {
|
||||
if (streamInfo.cmaf_edge) {
|
||||
if (streamInfo.url.contains("playlist.m3u8")) {
|
||||
streamInfo.url = streamInfo.url.replace("playlist.m3u8", "playlist_sfm4s.m3u8");
|
||||
} else if (streamInfo.url.contains("playlist_sfm4s.m3u8")) {
|
||||
streamInfo.url = streamInfo.url.replace("playlist_sfm4s.m3u8", "playlist.m3u8");
|
||||
|
@ -328,6 +329,7 @@ public class ChaturbateModel extends AbstractModel {
|
|||
} else {
|
||||
streamInfo.url = match.replaceFirst("live-c-fhls/amlst");
|
||||
}
|
||||
}
|
||||
|
||||
return streamInfo;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue