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); modelState = model.getOnlineState(false);
if (modelState == State.ONLINE) { if (modelState == State.ONLINE) {
segmentPlaylistUrl = getSegmentPlaylistUrl(model); segmentPlaylistUrl = getSegmentPlaylistUrl(model);
} else { waitSomeTime(TEN_SECONDS);
stop();
} }
} catch (Exception e1) { } catch (Exception e1) {
modelState = State.UNKNOWN; modelState = State.UNKNOWN;
} }
if (modelState != State.ONLINE) {
stop();
}
LOG.info(errorMsg, model, modelState); LOG.info(errorMsg, model, modelState);
waitSomeTime(TEN_SECONDS);
} }
protected String getSegmentPlaylistUrl(Model model) throws IOException, ExecutionException, ParseException, PlaylistException, JAXBException { protected String getSegmentPlaylistUrl(Model model) throws IOException, ExecutionException, ParseException, PlaylistException, JAXBException {