Fix recordings not stopping, if playlist requests returns 403

This commit is contained in:
0xb00bface 2021-08-07 22:22:49 +02:00
parent 87f7bd6e83
commit d017a781cd
1 changed files with 4 additions and 3 deletions

View File

@ -183,14 +183,15 @@ public abstract class AbstractHlsDownload extends AbstractDownload {
modelState = model.getOnlineState(false);
if (modelState == State.ONLINE) {
segmentPlaylistUrl = getSegmentPlaylistUrl(model);
} else {
stop();
waitSomeTime(TEN_SECONDS);
}
} catch (Exception e1) {
modelState = State.UNKNOWN;
}
if (modelState != State.ONLINE) {
stop();
}
LOG.info(errorMsg, model, modelState);
waitSomeTime(TEN_SECONDS);
}
protected String getSegmentPlaylistUrl(Model model) throws IOException, ExecutionException, ParseException, PlaylistException, JAXBException {