File tree Expand file tree Collapse file tree
extractor/src/main/java/org/schabi/newpipe/extractor/search Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77import org .schabi .newpipe .extractor .exceptions .ExtractionException ;
88import org .schabi .newpipe .extractor .stream .Stream ;
99import org .schabi .newpipe .extractor .uih .SearchQIHandler ;
10+ import org .schabi .newpipe .extractor .utils .ExtractorHelper ;
1011
1112import java .io .IOException ;
1213
@@ -42,8 +43,9 @@ public static SearchInfo getInfo(SearchExtractor extractor) throws ExtractionExc
4243 info .addError (e );
4344 }
4445
45- info .setRelatedItems (extractor .getInfoItemSearchCollector ().getItems ());
46- info .setNextPageUrl (extractor .getNextPageUrl ());
46+ ListExtractor .InfoItemsPage <InfoItem > page = ExtractorHelper .getItemsPageOrLogError (info , extractor );
47+ info .setRelatedItems (page .getItems ());
48+ info .setNextPageUrl (page .getNextPageUrl ());
4749
4850 return info ;
4951 }
You can’t perform that action at this time.
0 commit comments