Skip to content

Commit 986a764

Browse files
committed
[YouTube] Fix some YoutubeStreamExtractorDefaultTest tests
- Fix typo in folder name of DescriptionTestPewdiepie test; - Fix constant usage of DownloaderTestImpl as download implementation for UnlistedTest and CCLicensed tests.
1 parent 1c07764 commit 986a764

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/stream/YoutubeStreamExtractorDefaultTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public static class DescriptionTestPewdiepie extends DefaultStreamExtractorTest
126126
@BeforeAll
127127
public static void setUp() throws Exception {
128128
YoutubeTestsUtils.ensureStateless();
129-
NewPipe.init(DownloaderFactory.getDownloader(RESOURCE_PATH + "pewdiwpie"));
129+
NewPipe.init(DownloaderFactory.getDownloader(RESOURCE_PATH + "pewdiepie"));
130130
extractor = YouTube.getStreamExtractor(URL);
131131
extractor.fetchPage();
132132
}
@@ -502,7 +502,7 @@ public static class UnlistedTest {
502502
@BeforeAll
503503
public static void setUp() throws Exception {
504504
YoutubeTestsUtils.ensureStateless();
505-
NewPipe.init(DownloaderTestImpl.getInstance());
505+
NewPipe.init(DownloaderFactory.getDownloader(RESOURCE_PATH + "unlistedDefaultTest"));
506506
extractor = (YoutubeStreamExtractor) YouTube
507507
.getStreamExtractor("https://www.youtube.com/watch?v=tjz2u2DiveM");
508508
extractor.fetchPage();
@@ -522,7 +522,7 @@ public static class CCLicensed {
522522
@BeforeAll
523523
public static void setUp() throws Exception {
524524
YoutubeTestsUtils.ensureStateless();
525-
NewPipe.init(DownloaderTestImpl.getInstance());
525+
NewPipe.init(DownloaderFactory.getDownloader(RESOURCE_PATH + "ccLicensed"));
526526
extractor = YouTube.getStreamExtractor(URL);
527527
extractor.fetchPage();
528528
}

0 commit comments

Comments
 (0)