pull/496/head
FongMi 2 years ago
parent 4c608cb267
commit cd2fe3d212
  1. 8
      youtube/src/main/java/com/github/kiulian/downloader/YoutubeDownloader.java

@ -14,8 +14,6 @@ import okhttp3.OkHttpClient;
public class YoutubeDownloader {
private final Downloader downloader;
private final Config config;
private final Parser parser;
public YoutubeDownloader(OkHttpClient client) {
@ -23,14 +21,10 @@ public class YoutubeDownloader {
}
public YoutubeDownloader(Config config, OkHttpClient client) {
this.downloader = new DownloaderImpl(this.config = config, client);
Downloader downloader = new DownloaderImpl(config, client);
this.parser = new ParserImpl(config, downloader, new ExtractorImpl(downloader), new CachedCipherFactory(downloader));
}
public Config getConfig() {
return config;
}
public Response<VideoInfo> getVideoInfo(RequestVideoInfo request) {
return parser.parseVideo(request);
}

Loading…
Cancel
Save