Skip to content

Commit d6b9930

Browse files
committed
Use DownloaderFactory in YoutubeCommentsExtractorTest.Pinned
1 parent b555f38 commit d6b9930

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeCommentsExtractorTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@ public static class Pinned {
206206

207207
@BeforeClass
208208
public static void setUp() throws Exception {
209-
NewPipe.init(DownloaderTestImpl.getInstance());
209+
YoutubeParsingHelper.resetClientVersionAndKey();
210+
NewPipe.init(new DownloaderFactory().getDownloader(RESOURCE_PATH + "pinned"));
210211
extractor = (YoutubeCommentsExtractor) YouTube
211212
.getCommentsExtractor(url);
212213
extractor.fetchPage();

0 commit comments

Comments
 (0)