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:
0xboobface 2019-04-20 15:54:54 +02:00
parent 9f06c3c8a5
commit c17fe9c173
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ public abstract class AbstractHlsDownload implements Download {
try(Response response = client.execute(request)) {
if(response.isSuccessful()) {
String body = response.body().string();
if(!body.contains("#EXT-X-STREAM-INF")) {
if(!body.contains("#EXTINF")) {
// no segments, empty playlist
return new SegmentPlaylist(segmentsURL);
}