Use DownloaderFactory in YoutubeCommentsExtractorTest.Pinned
This commit is contained in:
parent
b555f38fa5
commit
d6b9930c18
1 changed files with 2 additions and 1 deletions
|
@ -206,7 +206,8 @@ public class YoutubeCommentsExtractorTest {
|
||||||
|
|
||||||
@BeforeClass
|
@BeforeClass
|
||||||
public static void setUp() throws Exception {
|
public static void setUp() throws Exception {
|
||||||
NewPipe.init(DownloaderTestImpl.getInstance());
|
YoutubeParsingHelper.resetClientVersionAndKey();
|
||||||
|
NewPipe.init(new DownloaderFactory().getDownloader(RESOURCE_PATH + "pinned"));
|
||||||
extractor = (YoutubeCommentsExtractor) YouTube
|
extractor = (YoutubeCommentsExtractor) YouTube
|
||||||
.getCommentsExtractor(url);
|
.getCommentsExtractor(url);
|
||||||
extractor.fetchPage();
|
extractor.fetchPage();
|
||||||
|
|
Loading…
Reference in a new issue