use DownloaderFactory instead of DownloaderTestImpl for search ChannelVerified

This commit is contained in:
bopol 2021-02-20 11:31:12 +01:00
parent 27a20e41cd
commit 0c831afa7b
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();
}