Fix: Check for empty playlists used the wrong tag
Use #EXTINF to check, if a playlist has entries instead of #EXT-X-STREAM-INF, which was accidentally used. This tag only occurs in master playlists.
This commit is contained in:
parent
9f06c3c8a5
commit
c17fe9c173
|
@ -67,7 +67,7 @@ public abstract class AbstractHlsDownload implements Download {
|
||||||
try(Response response = client.execute(request)) {
|
try(Response response = client.execute(request)) {
|
||||||
if(response.isSuccessful()) {
|
if(response.isSuccessful()) {
|
||||||
String body = response.body().string();
|
String body = response.body().string();
|
||||||
if(!body.contains("#EXT-X-STREAM-INF")) {
|
if(!body.contains("#EXTINF")) {
|
||||||
// no segments, empty playlist
|
// no segments, empty playlist
|
||||||
return new SegmentPlaylist(segmentsURL);
|
return new SegmentPlaylist(segmentsURL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue