Improve error handling for playlist errors 403 and 404
This commit is contained in:
parent
9c8fe1f89c
commit
1784b20719
|
@ -167,7 +167,6 @@ public abstract class AbstractHlsDownload extends AbstractDownload {
|
|||
}
|
||||
|
||||
protected void handleHttpException(HttpException e) throws IOException {
|
||||
consecutivePlaylistErrors++;
|
||||
if (e.getResponseCode() == 404) {
|
||||
checkIfModelIsStillOnline("Playlist not found (404). Model {} probably went offline. Model state: {}");
|
||||
} else if (e.getResponseCode() == 403) {
|
||||
|
@ -194,7 +193,7 @@ public abstract class AbstractHlsDownload extends AbstractDownload {
|
|||
return;
|
||||
}
|
||||
try {
|
||||
LOG.debug("Trying to update playlist URL after waiting {}ms", A_FEW_SECONDS);
|
||||
LOG.debug("Waiting {}ms before trying to update the playlist URL", A_FEW_SECONDS);
|
||||
waitSomeTime(A_FEW_SECONDS);
|
||||
segmentPlaylistUrl = getSegmentPlaylistUrl(model);
|
||||
} catch (Exception e) {
|
||||
|
|
Loading…
Reference in New Issue