Skip to content

Commit e97a685

Browse files
committed
Format the YoutubeMusicSearchExtractor class to be in the 100 characters per line limit
1 parent 34a9ccb commit e97a685

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeMusicSearchExtractor.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ public YoutubeMusicSearchExtractor(final StreamingService service, final SearchQ
3838
}
3939

4040
@Override
41-
public void onFetchPage(@Nonnull final Downloader downloader) throws IOException, ExtractionException {
41+
public void onFetchPage(@Nonnull final Downloader downloader) throws IOException,
42+
ExtractionException {
4243
final String[] youtubeMusicKeys = YoutubeParsingHelper.getYoutubeMusicKeys();
4344

4445
final String url = "https://music.youtube.com/youtubei/v1/search?alt=json&key=" + youtubeMusicKeys[0];
@@ -183,7 +184,8 @@ public InfoItemsPage<InfoItem> getInitialPage() throws ExtractionException, IOEx
183184
}
184185

185186
@Override
186-
public InfoItemsPage<InfoItem> getPage(final Page page) throws IOException, ExtractionException {
187+
public InfoItemsPage<InfoItem> getPage(final Page page) throws IOException,
188+
ExtractionException {
187189
if (page == null || isNullOrEmpty(page.getUrl())) {
188190
throw new IllegalArgumentException("Page doesn't contain an URL");
189191
}
@@ -322,7 +324,8 @@ public String getUploaderUrl() throws ParsingException {
322324
.getObject(1).getObject("musicResponsiveListItemFlexColumnRenderer")
323325
.getObject("text").getArray("runs").getObject(0);
324326

325-
if (!navigationEndpointHolder.has("navigationEndpoint")) return null;
327+
if (!navigationEndpointHolder.has("navigationEndpoint"))
328+
return null;
326329

327330
final String url = getUrlFromNavigationEndpoint(navigationEndpointHolder.getObject("navigationEndpoint"));
328331

@@ -525,7 +528,8 @@ public long getStreamCount() throws ParsingException {
525528
}
526529
}
527530

528-
private Page getNextPageFrom(final JsonArray continuations) throws ParsingException, IOException, ReCaptchaException {
531+
private Page getNextPageFrom(final JsonArray continuations) throws ParsingException,
532+
IOException, ReCaptchaException {
529533
if (isNullOrEmpty(continuations)) {
530534
return null;
531535
}

0 commit comments

Comments
 (0)