Fix YouTube music search.

This commit is contained in:
FireMasterK 2021-07-31 01:33:38 +05:30
parent 6335823843
commit a685941bba
No known key found for this signature in database
GPG Key ID: 49451E4482CC5BCD

View File

@ -165,7 +165,7 @@ public class YoutubeMusicSearchExtractor extends SearchExtractor {
public InfoItemsPage<InfoItem> getInitialPage() throws ExtractionException, IOException {
final InfoItemsSearchCollector collector = new InfoItemsSearchCollector(getServiceId());
final JsonArray contents = initialData.getObject("contents").getObject("sectionListRenderer").getArray("contents");
final JsonArray contents = JsonUtils.getArray(JsonUtils.getArray(initialData, "contents.tabbedSearchResultsRenderer.tabs").getObject(0), "tabRenderer.content.sectionListRenderer.contents");
Page nextPage = null;