From 41699798fe83093661cbcb42dab78937b14f06fe Mon Sep 17 00:00:00 2001 From: TobiGr Date: Sat, 26 Dec 2020 12:47:28 +0100 Subject: [PATCH] [media.ccc.de] Use web URL for uploaderUrl instead of API URL in recent --- .../media_ccc/extractors/MediaCCCRecentKioskExtractor.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/media_ccc/extractors/MediaCCCRecentKioskExtractor.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/media_ccc/extractors/MediaCCCRecentKioskExtractor.java index 77c7b1df..724b3e06 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/services/media_ccc/extractors/MediaCCCRecentKioskExtractor.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/services/media_ccc/extractors/MediaCCCRecentKioskExtractor.java @@ -3,6 +3,7 @@ package org.schabi.newpipe.extractor.services.media_ccc.extractors; import com.grack.nanojson.JsonObject; import org.schabi.newpipe.extractor.exceptions.ParsingException; import org.schabi.newpipe.extractor.localization.DateWrapper; +import org.schabi.newpipe.extractor.services.media_ccc.linkHandler.MediaCCCConferenceLinkHandlerFactory; import org.schabi.newpipe.extractor.stream.StreamInfoItemExtractor; import org.schabi.newpipe.extractor.stream.StreamType; @@ -39,7 +40,7 @@ public class MediaCCCRecentKioskExtractor implements StreamInfoItemExtractor { } @Override - public boolean isAd() throws ParsingException { + public boolean isAd() { return false; } @@ -60,7 +61,9 @@ public class MediaCCCRecentKioskExtractor implements StreamInfoItemExtractor { @Override public String getUploaderUrl() throws ParsingException { - return event.getString("conference_url"); + return new MediaCCCConferenceLinkHandlerFactory() + .fromUrl(event.getString("conference_url")) // API URL + .getUrl(); // web URL } @Nullable