Try to update the segment playlist URL, if loading the playlist fails
This commit is contained in:
parent
0fe466bc1a
commit
d820d611f1
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue