ADD basic playlist support + youtube playlist support

This commit is contained in:
BlenderViking
2017-03-12 16:15:51 +01:00
parent f63b7e8f00
commit e8794d92b5
9 changed files with 433 additions and 0 deletions

View File

@@ -69,12 +69,23 @@ public class YoutubeService extends StreamingService {
return new YoutubeChannelUrlIdHandler();
}
@Override
public UrlIdHandler getPlayListUrlIdHandlerInstance() {
return new YoutubePlayListUrlIdHandler();
}
@Override
public ChannelExtractor getChannelExtractorInstance(String url, int page)
throws ExtractionException, IOException {
return new YoutubeChannelExtractor(getChannelUrlIdHandlerInstance(), url, page, getServiceId());
}
public PlayListExtractor getPlayListExtractorInstance(String url, int page)
throws ExtractionException, IOException {
return new YoutubePlayListExtractor(getPlayListUrlIdHandlerInstance(), url, page, getServiceId());
}
@Override
public SuggestionExtractor getSuggestionExtractorInstance() {
return new YoutubeSuggestionExtractor(getServiceId());