Merge pull request #554 from B0pol/test-verified

use DownloaderFactory instead of DownloaderTestImpl for search Channe…
This commit is contained in:
bopol 2021-02-20 12:12:43 +01:00 committed by GitHub
commit a9aa385bb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 1499 additions and 1 deletions

View File

@ -280,7 +280,8 @@ public class YoutubeSearchExtractorTest {
@BeforeClass
public static void setUp() throws Exception {
NewPipe.init(DownloaderTestImpl.getInstance());
YoutubeParsingHelper.resetClientVersionAndKey();
NewPipe.init(new DownloaderFactory().getDownloader(RESOURCE_PATH + "verified"));
extractor = YouTube.getSearchExtractor(QUERY, singletonList(CHANNELS), "");
extractor.fetchPage();
}