Skip to content

Commit 5503d16

Browse files
litetexStypox
authored andcommitted
Fixed YoutubeStreamExtractorLivestreamTest
The "Lofi Girl"-stream got interrupted by a copyright strike and had to be restarted. Because of this a new id is now used.
1 parent fc8b5eb commit 5503d16

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
public class YoutubeStreamExtractorLivestreamTest extends DefaultStreamExtractorTest {
2121
private static final String RESOURCE_PATH = DownloaderFactory.RESOURCE_PATH + "services/youtube/extractor/stream/";
22-
private static final String ID = "5qap5aO4i9A";
22+
private static final String ID = "jfKfPfyJRdk";
2323
private static final int TIMESTAMP = 1737;
2424
private static final String URL = YoutubeStreamExtractorDefaultTest.BASE_URL + ID + "&t=" + TIMESTAMP;
2525
private static StreamExtractor extractor;
@@ -57,9 +57,9 @@ public void testUploaderName() throws Exception {
5757
@Override public long expectedLength() { return 0; }
5858
@Override public long expectedTimestamp() { return TIMESTAMP; }
5959
@Override public long expectedViewCountAtLeast() { return 0; }
60-
@Nullable @Override public String expectedUploadDate() { return "2020-02-22 00:00:00.000"; }
61-
@Nullable @Override public String expectedTextualUploadDate() { return "2020-02-22"; }
62-
@Override public long expectedLikeCountAtLeast() { return 825000; }
60+
@Nullable @Override public String expectedUploadDate() { return "2022-07-12 00:00:00.000"; }
61+
@Nullable @Override public String expectedTextualUploadDate() { return "2022-07-12"; }
62+
@Override public long expectedLikeCountAtLeast() { return 340_000; }
6363
@Override public long expectedDislikeCountAtLeast() { return -1; }
6464
@Override public boolean expectedHasSubtitles() { return false; }
6565
@Nullable @Override public String expectedDashMpdUrlContains() { return "https://manifest.googlevideo.com/api/manifest/dash/"; }

0 commit comments

Comments
 (0)