|
29 | 29 | import javax.annotation.Nonnull; |
30 | 30 |
|
31 | 31 | import static org.schabi.newpipe.extractor.services.youtube.linkHandler.YoutubeParsingHelper.fixThumbnailUrl; |
32 | | -import static org.schabi.newpipe.extractor.services.youtube.linkHandler.YoutubeParsingHelper.getValidResponseBody; |
| 32 | +import static org.schabi.newpipe.extractor.services.youtube.linkHandler.YoutubeParsingHelper.getValidJsonResponseBody; |
33 | 33 | import static org.schabi.newpipe.extractor.services.youtube.linkHandler.YoutubeParsingHelper.getTextFromObject; |
34 | 34 | import static org.schabi.newpipe.extractor.services.youtube.linkHandler.YoutubeParsingHelper.getUrlFromNavigationEndpoint; |
35 | 35 | import static org.schabi.newpipe.extractor.services.youtube.linkHandler.YoutubeSearchQueryHandlerFactory.MUSIC_ALBUMS; |
@@ -111,7 +111,7 @@ public void onFetchPage(@Nonnull final Downloader downloader) throws IOException |
111 | 111 | headers.put("Referer", Collections.singletonList("music.youtube.com")); |
112 | 112 | headers.put("Content-Type", Collections.singletonList("application/json")); |
113 | 113 |
|
114 | | - final String responseBody = getValidResponseBody(getDownloader().post(url, headers, json)); |
| 114 | + final String responseBody = getValidJsonResponseBody(getDownloader().post(url, headers, json)); |
115 | 115 |
|
116 | 116 | try { |
117 | 117 | initialData = JsonParser.object().from(responseBody); |
@@ -215,7 +215,7 @@ public InfoItemsPage<InfoItem> getPage(final String pageUrl) throws IOException, |
215 | 215 | headers.put("Referer", Collections.singletonList("music.youtube.com")); |
216 | 216 | headers.put("Content-Type", Collections.singletonList("application/json")); |
217 | 217 |
|
218 | | - final String responseBody = getValidResponseBody(getDownloader().post(pageUrl, headers, json)); |
| 218 | + final String responseBody = getValidJsonResponseBody(getDownloader().post(pageUrl, headers, json)); |
219 | 219 |
|
220 | 220 | final JsonObject ajaxJson; |
221 | 221 | try { |
|
0 commit comments