Use DownloaderFactory in YoutubeCommentsExtractorTest.Pinned
This commit is contained in:
parent
b555f38fa5
commit
d6b9930c18
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue