From 46eab1ec17534902e811bf751030b2f146b22c0c Mon Sep 17 00:00:00 2001 From: TobiGr Date: Sun, 14 Mar 2021 00:43:46 +0100 Subject: [PATCH] Remove declarations of exceptions which are not thrown from method signatures --- .../media_ccc/extractors/MediaCCCLiveStreamExtractor.java | 4 ++-- .../services/soundcloud/SoundcloudParsingHelper.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/media_ccc/extractors/MediaCCCLiveStreamExtractor.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/media_ccc/extractors/MediaCCCLiveStreamExtractor.java index 889c3c9f..f38eb0fd 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/services/media_ccc/extractors/MediaCCCLiveStreamExtractor.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/services/media_ccc/extractors/MediaCCCLiveStreamExtractor.java @@ -217,7 +217,7 @@ public class MediaCCCLiveStreamExtractor extends StreamExtractor { } @Override - public List getVideoOnlyStreams() throws IOException, ExtractionException { + public List getVideoOnlyStreams() { return null; } @@ -251,7 +251,7 @@ public class MediaCCCLiveStreamExtractor extends StreamExtractor { @Nonnull @Override - public String getHost() throws ParsingException { + public String getHost() { return null; } diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/soundcloud/SoundcloudParsingHelper.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/soundcloud/SoundcloudParsingHelper.java index 2afdc09b..1aac227a 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/services/soundcloud/SoundcloudParsingHelper.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/services/soundcloud/SoundcloudParsingHelper.java @@ -131,7 +131,7 @@ public class SoundcloudParsingHelper { * * @return the url resolved */ - public static String resolveUrlWithEmbedPlayer(String apiUrl) throws IOException, ReCaptchaException, ParsingException { + public static String resolveUrlWithEmbedPlayer(String apiUrl) throws IOException, ReCaptchaException { String response = NewPipe.getDownloader().get("https://w.soundcloud.com/player/?url=" + URLEncoder.encode(apiUrl, UTF_8), SoundCloud.getLocalization()).responseBody();