diff --git a/src/main/java/org/schabi/newpipe/extractor/kiosk/KioskInfo.java b/src/main/java/org/schabi/newpipe/extractor/kiosk/KioskInfo.java index baf9bef4..6bbdfbaa 100644 --- a/src/main/java/org/schabi/newpipe/extractor/kiosk/KioskInfo.java +++ b/src/main/java/org/schabi/newpipe/extractor/kiosk/KioskInfo.java @@ -30,11 +30,15 @@ import java.io.IOException; public class KioskInfo extends ListInfo { public String type; - public static ListExtractor.NextItemsResult getMoreItems(ServiceList serviceItem, String url, String nextStreamsUrl) throws IOException, ExtractionException { + public static ListExtractor.NextItemsResult getMoreItems(ServiceList serviceItem, + String url, + String nextStreamsUrl) throws IOException, ExtractionException { return getMoreItems(serviceItem.getService(), url, nextStreamsUrl); } - public static ListExtractor.NextItemsResult getMoreItems(StreamingService service, String url, String nextStreamsUrl) throws IOException, ExtractionException { + public static ListExtractor.NextItemsResult getMoreItems(StreamingService service, + String url, + String nextStreamsUrl) throws IOException, ExtractionException { KioskList kl = service.getKioskList(); KioskExtractor extractor = kl.getExtryctorByUrl(url, nextStreamsUrl); return extractor.getNextStreams(); diff --git a/src/main/java/org/schabi/newpipe/extractor/kiosk/KioskList.java b/src/main/java/org/schabi/newpipe/extractor/kiosk/KioskList.java index c2335dd9..eb8043ed 100644 --- a/src/main/java/org/schabi/newpipe/extractor/kiosk/KioskList.java +++ b/src/main/java/org/schabi/newpipe/extractor/kiosk/KioskList.java @@ -67,6 +67,10 @@ public class KioskList { } } + public String getDefaultKioskType() { + return defaultKiosk; + } + public KioskExtractor getExtractorByType(String kioskType, String nextStreamsUrl) throws ExtractionException, IOException { KioskEntry ke = kioskList.get(kioskType); diff --git a/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeService.java b/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeService.java index a578f522..71e1733b 100644 --- a/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeService.java +++ b/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeService.java @@ -95,6 +95,7 @@ public class YoutubeService extends StreamingService { return new YoutubeTrendingExtractor(YoutubeService.this, url, nextStreamUrl); } }, new YoutubeTrendingUrlIdHandler()); + list.setDefaultKiosk("Trending"); } catch (Exception e) { throw new ExtractionException(e); }