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 {
|
protected void handleHttpException(HttpException e) throws IOException {
|
||||||
consecutivePlaylistErrors++;
|
|
||||||
if (e.getResponseCode() == 404) {
|
if (e.getResponseCode() == 404) {
|
||||||
checkIfModelIsStillOnline("Playlist not found (404). Model {} probably went offline. Model state: {}");
|
checkIfModelIsStillOnline("Playlist not found (404). Model {} probably went offline. Model state: {}");
|
||||||
} else if (e.getResponseCode() == 403) {
|
} else if (e.getResponseCode() == 403) {
|
||||||
|
@ -194,7 +193,7 @@ public abstract class AbstractHlsDownload extends AbstractDownload {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
try {
|
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);
|
waitSomeTime(A_FEW_SECONDS);
|
||||||
segmentPlaylistUrl = getSegmentPlaylistUrl(model);
|
segmentPlaylistUrl = getSegmentPlaylistUrl(model);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
Loading…
Reference in New Issue