Use DownloaderFactory in YoutubeCommentsExtractorTest.Pinned

This commit is contained in:
XiangRongLin 2021-02-13 20:10:42 +01:00
parent b555f38fa5
commit d6b9930c18

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();