Use DownloaderFactory in YoutubeCommentsExtractorTest.Pinned

This commit is contained in:
XiangRongLin 2021-02-13 20:10:42 +01:00
parent b555f38fa5
commit d6b9930c18
1 changed files with 2 additions and 1 deletions

View File

@ -206,7 +206,8 @@ public class YoutubeCommentsExtractorTest {
@BeforeClass
public static void setUp() throws Exception {
NewPipe.init(DownloaderTestImpl.getInstance());
YoutubeParsingHelper.resetClientVersionAndKey();
NewPipe.init(new DownloaderFactory().getDownloader(RESOURCE_PATH + "pinned"));
extractor = (YoutubeCommentsExtractor) YouTube
.getCommentsExtractor(url);
extractor.fetchPage();