mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2024-12-13 05:40:34 +05:30
fix next video problem
This commit is contained in:
parent
6ab3dc876e
commit
b587d175bb
@ -239,18 +239,14 @@ public class StreamInfo extends AbstractStreamInfo {
|
|||||||
streamInfo.addException(e);
|
streamInfo.addException(e);
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
// get next video
|
StreamInfoItemCollector c = new StreamInfoItemCollector(
|
||||||
if(streamInfo.next_video != null)
|
extractor.getUrlIdHandler(), extractor.getServiceId());
|
||||||
{
|
StreamInfoItemExtractor nextVideo = extractor.getNextVideo();
|
||||||
StreamInfoItemCollector c = new StreamInfoItemCollector(
|
c.commit(nextVideo);
|
||||||
extractor.getUrlIdHandler(), extractor.getServiceId());
|
if(c.getItemList().size() != 0) {
|
||||||
StreamInfoItemExtractor nextVideo = extractor.getNextVideo();
|
streamInfo.next_video = (StreamInfoItem) c.getItemList().get(0);
|
||||||
c.commit(nextVideo);
|
|
||||||
if(c.getItemList().size() != 0) {
|
|
||||||
streamInfo.next_video = (StreamInfoItem) c.getItemList().get(0);
|
|
||||||
}
|
|
||||||
streamInfo.errors.addAll(c.getErrors());
|
|
||||||
}
|
}
|
||||||
|
streamInfo.errors.addAll(c.getErrors());
|
||||||
}
|
}
|
||||||
catch(Exception e) {
|
catch(Exception e) {
|
||||||
streamInfo.addException(e);
|
streamInfo.addException(e);
|
||||||
|
Loading…
Reference in New Issue
Block a user