Improve error handling for playlist errors 403 and 404

This commit is contained in:
0xb00bface 2021-08-08 13:31:24 +02:00
parent 9c8fe1f89c
commit 1784b20719
1 changed files with 1 additions and 2 deletions

View File

@ -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) {