Fix recordings not stopping, if playlist requests returns 403
This commit is contained in:
parent
87f7bd6e83
commit
d017a781cd
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue