From b587d175bb9cd7e84b9bdb9b594db24e654ec7ae Mon Sep 17 00:00:00 2001 From: Christian Schabesberger Date: Tue, 11 Apr 2017 22:45:00 +0200 Subject: [PATCH] fix next video problem --- stream_info/StreamInfo.java | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/stream_info/StreamInfo.java b/stream_info/StreamInfo.java index cf3df49d8..e99293aef 100644 --- a/stream_info/StreamInfo.java +++ b/stream_info/StreamInfo.java @@ -239,18 +239,14 @@ public class StreamInfo extends AbstractStreamInfo { streamInfo.addException(e); } try { - // get next video - if(streamInfo.next_video != null) - { - StreamInfoItemCollector c = new StreamInfoItemCollector( - extractor.getUrlIdHandler(), extractor.getServiceId()); - StreamInfoItemExtractor nextVideo = extractor.getNextVideo(); - c.commit(nextVideo); - if(c.getItemList().size() != 0) { - streamInfo.next_video = (StreamInfoItem) c.getItemList().get(0); - } - streamInfo.errors.addAll(c.getErrors()); + StreamInfoItemCollector c = new StreamInfoItemCollector( + extractor.getUrlIdHandler(), extractor.getServiceId()); + StreamInfoItemExtractor nextVideo = extractor.getNextVideo(); + c.commit(nextVideo); + if(c.getItemList().size() != 0) { + streamInfo.next_video = (StreamInfoItem) c.getItemList().get(0); } + streamInfo.errors.addAll(c.getErrors()); } catch(Exception e) { streamInfo.addException(e);