forked from j62/ctbrec
1
0
Fork 0

Try to update the segment playlist URL, if loading the playlist fails

This commit is contained in:
0xboobface 2019-12-28 16:59:20 +01:00
parent 0fe466bc1a
commit d820d611f1
1 changed files with 9 additions and 6 deletions

View File

@ -124,6 +124,9 @@ public abstract class AbstractHlsDownload extends AbstractDownload {
}
throw new InvalidPlaylistException("Playlist has no media playlist");
} else {
// update playlist url in case the streaming server has switched or something
LOG.debug("Loading segment playlist failed - trying to get a playlist URL");
segmentsURL = getSegmentPlaylistUrl(getModel());
throw new HttpException(response.code(), response.message());
}
} catch (Exception e) {