Skip to content

Commit 255c726

Browse files
committed
Add resource path base to DownloaderFactory
1 parent 35e2997 commit 255c726

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

extractor/src/test/java/org/schabi/newpipe/downloader/DownloaderFactory.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
public class DownloaderFactory {
88

9+
public final static String RESOURCE_PATH = "src/test/resources/org/schabi/newpipe/extractor/";
10+
911
private final static DownloaderType DEFAULT_DOWNLOADER = DownloaderType.REAL;
1012

1113
public Downloader getDownloader(String path) throws IOException {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class YoutubeMixPlaylistExtractorTest {
4343
private static final String VIDEO_ID = "_AzeUSL9lZc";
4444
private static final String VIDEO_TITLE =
4545
"Most Beautiful And Emotional Piano: Anime Music Shigatsu wa Kimi no Uso OST IMO";
46-
private static final String RESOURCE_PATH = "src/test/resources/org/schabi/newpipe/extractor/services/youtube/mix/";
46+
private static final String RESOURCE_PATH = DownloaderFactory.RESOURCE_PATH + "services/youtube/mix/";
4747
private static final Map<String, String> dummyCookie
4848
= Collections.singletonMap(YoutubeMixPlaylistExtractor.COOKIE_NAME, "whatever");
4949

0 commit comments

Comments
 (0)