diff --git a/app/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeStreamExtractor.java b/app/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeStreamExtractor.java index 52a42f645..2df361644 100644 --- a/app/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeStreamExtractor.java +++ b/app/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeStreamExtractor.java @@ -10,7 +10,6 @@ import org.mozilla.javascript.Function; import org.mozilla.javascript.ScriptableObject; import org.schabi.newpipe.extractor.AbstractStreamInfo; import org.schabi.newpipe.extractor.exceptions.ExtractionException; -import org.schabi.newpipe.extractor.exceptions.FoundAdException; import org.schabi.newpipe.extractor.exceptions.ParsingException; import org.schabi.newpipe.extractor.exceptions.ReCaptchaException; import org.schabi.newpipe.extractor.stream_info.AudioStream; diff --git a/app/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeStreamUrlIdHandler.java b/app/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeStreamUrlIdHandler.java index 055cd5970..8c08a6101 100644 --- a/app/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeStreamUrlIdHandler.java +++ b/app/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeStreamUrlIdHandler.java @@ -1,7 +1,5 @@ package org.schabi.newpipe.extractor.services.youtube; -import android.support.annotation.NonNull; - import org.schabi.newpipe.extractor.Downloader; import org.schabi.newpipe.extractor.NewPipe; import org.schabi.newpipe.extractor.Parser; @@ -112,7 +110,7 @@ public class YoutubeStreamUrlIdHandler implements UrlIdHandler { * @return the id of the stream * @throws ParsingException */ - private @NonNull String getRealIdFromSharedLink(String url) throws ParsingException { + private String getRealIdFromSharedLink(String url) throws ParsingException { URI uri; try { uri = new URI(url); @@ -135,7 +133,7 @@ public class YoutubeStreamUrlIdHandler implements UrlIdHandler { return realId; } - private @NonNull String getSharedId(URI uri) throws ParsingException { + private String getSharedId(URI uri) throws ParsingException { if (!"/shared".equals(uri.getPath())) { throw new ParsingException("Not a shared link: " + uri.toString() + " (path != " + uri.getPath() + ")"); }