Skip to content

Commit b587d17

Browse files
committed
fix next video problem
1 parent 6ab3dc8 commit b587d17

1 file changed

Lines changed: 7 additions & 11 deletions

File tree

stream_info/StreamInfo.java

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -239,18 +239,14 @@ private static StreamInfo extractOptionalData(
239239
streamInfo.addException(e);
240240
}
241241
try {
242-
// get next video
243-
if(streamInfo.next_video != null)
244-
{
245-
StreamInfoItemCollector c = new StreamInfoItemCollector(
246-
extractor.getUrlIdHandler(), extractor.getServiceId());
247-
StreamInfoItemExtractor nextVideo = extractor.getNextVideo();
248-
c.commit(nextVideo);
249-
if(c.getItemList().size() != 0) {
250-
streamInfo.next_video = (StreamInfoItem) c.getItemList().get(0);
251-
}
252-
streamInfo.errors.addAll(c.getErrors());
242+
StreamInfoItemCollector c = new StreamInfoItemCollector(
243+
extractor.getUrlIdHandler(), extractor.getServiceId());
244+
StreamInfoItemExtractor nextVideo = extractor.getNextVideo();
245+
c.commit(nextVideo);
246+
if(c.getItemList().size() != 0) {
247+
streamInfo.next_video = (StreamInfoItem) c.getItemList().get(0);
253248
}
249+
streamInfo.errors.addAll(c.getErrors());
254250
}
255251
catch(Exception e) {
256252
streamInfo.addException(e);

0 commit comments

Comments
 (0)