From 9e8724df4d519fd74070a55a4043d25919be18c2 Mon Sep 17 00:00:00 2001 From: litetex <40789489+litetex@users.noreply.github.com> Date: Sat, 30 Jul 2022 14:42:25 +0200 Subject: [PATCH] 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. --- .../stream/YoutubeStreamExtractorLivestreamTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/stream/YoutubeStreamExtractorLivestreamTest.java b/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/stream/YoutubeStreamExtractorLivestreamTest.java index 81fbf126a..6b26a0d04 100644 --- a/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/stream/YoutubeStreamExtractorLivestreamTest.java +++ b/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/stream/YoutubeStreamExtractorLivestreamTest.java @@ -19,7 +19,7 @@ import javax.annotation.Nullable; public class YoutubeStreamExtractorLivestreamTest extends DefaultStreamExtractorTest { private static final String RESOURCE_PATH = DownloaderFactory.RESOURCE_PATH + "services/youtube/extractor/stream/"; - private static final String ID = "5qap5aO4i9A"; + private static final String ID = "jfKfPfyJRdk"; private static final int TIMESTAMP = 1737; private static final String URL = YoutubeStreamExtractorDefaultTest.BASE_URL + ID + "&t=" + TIMESTAMP; private static StreamExtractor extractor; @@ -57,9 +57,9 @@ public class YoutubeStreamExtractorLivestreamTest extends DefaultStreamExtractor @Override public long expectedLength() { return 0; } @Override public long expectedTimestamp() { return TIMESTAMP; } @Override public long expectedViewCountAtLeast() { return 0; } - @Nullable @Override public String expectedUploadDate() { return "2020-02-22 00:00:00.000"; } - @Nullable @Override public String expectedTextualUploadDate() { return "2020-02-22"; } - @Override public long expectedLikeCountAtLeast() { return 825000; } + @Nullable @Override public String expectedUploadDate() { return "2022-07-12 00:00:00.000"; } + @Nullable @Override public String expectedTextualUploadDate() { return "2022-07-12"; } + @Override public long expectedLikeCountAtLeast() { return 340_000; } @Override public long expectedDislikeCountAtLeast() { return -1; } @Override public boolean expectedHasSubtitles() { return false; } @Nullable @Override public String expectedDashMpdUrlContains() { return "https://manifest.googlevideo.com/api/manifest/dash/"; }