Improve logging

This commit is contained in:
0xb00bface 2023-04-08 13:58:04 +02:00
parent 96e10b65c8
commit 595bfebe13
1 changed files with 2 additions and 2 deletions

View File

@ -246,11 +246,11 @@ public abstract class AbstractHlsDownload extends AbstractDownload {
} }
protected String getSegmentPlaylistUrl(Model model) throws IOException, ExecutionException, ParseException, PlaylistException, JAXBException { protected String getSegmentPlaylistUrl(Model model) throws IOException, ExecutionException, ParseException, PlaylistException, JAXBException {
LOG.debug("{} stream idx: {}", model.getName(), model.getStreamUrlIndex()); LOG.debug("{}:{} stream idx: {}", model.getSite().getName(), model.getName(), model.getStreamUrlIndex());
List<StreamSource> streamSources = model.getStreamSources(); List<StreamSource> streamSources = model.getStreamSources();
Collections.sort(streamSources); Collections.sort(streamSources);
for (StreamSource streamSource : streamSources) { for (StreamSource streamSource : streamSources) {
LOG.debug("{} src {}", model.getName(), streamSource); LOG.debug("{}:{} src {}", model.getSite().getName(), model.getName(), streamSource);
} }
String url; String url;
if (model.getStreamUrlIndex() >= 0 && model.getStreamUrlIndex() < streamSources.size()) { if (model.getStreamUrlIndex() >= 0 && model.getStreamUrlIndex() < streamSources.size()) {