Skip to content

Commit 59a2f1a

Browse files
committed
No random errors
1 parent 9f94a29 commit 59a2f1a

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/services/bandcamp/extractors/BandcampSearchExtractor.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ public List<MetaInfo> getMetaInfo() throws ParsingException {
4848
return Collections.emptyList();
4949
}
5050

51+
@Override
5152
public InfoItemsPage<InfoItem> getPage(final Page page)
5253
throws IOException, ExtractionException {
5354
final MultiInfoItemsCollector collector = new MultiInfoItemsCollector(getServiceId());
@@ -97,16 +98,12 @@ public InfoItemsPage<InfoItem> getPage(final Page page)
9798
}
9899
}
99100

100-
// Search results appear to be capped at six pages
101-
assert pages.size() < 10;
102-
103101
String nextUrl = null;
104102
if (currentPage < pages.size()) {
105103
nextUrl = page.getUrl().substring(0, page.getUrl().length() - 1) + (currentPage + 1);
106104
}
107105

108106
return new InfoItemsPage<>(collector, new Page(nextUrl));
109-
110107
}
111108

112109
@Nonnull

0 commit comments

Comments
 (0)