set default kiosk for youtube
This commit is contained in:
parent
78d461ed89
commit
b37b24511f
|
@ -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();
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue