From d3168a9022185be93b73cb939edb042f4e589210 Mon Sep 17 00:00:00 2001 From: wb9688 Date: Wed, 7 Feb 2018 10:22:27 +0100 Subject: [PATCH] Fix opening SoundCloud links --- app/src/main/AndroidManifest.xml | 15 +++++++++++++++ .../org/schabi/newpipe/util/NavigationHelper.java | 5 ----- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index f0a8d45e0..bc3dc62e6 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -169,6 +169,21 @@ + + + + + + + + + + + + + + + diff --git a/app/src/main/java/org/schabi/newpipe/util/NavigationHelper.java b/app/src/main/java/org/schabi/newpipe/util/NavigationHelper.java index 8894af9df..51cdd4cfe 100644 --- a/app/src/main/java/org/schabi/newpipe/util/NavigationHelper.java +++ b/app/src/main/java/org/schabi/newpipe/util/NavigationHelper.java @@ -20,7 +20,6 @@ import org.schabi.newpipe.R; import org.schabi.newpipe.about.AboutActivity; import org.schabi.newpipe.download.DownloadActivity; import org.schabi.newpipe.extractor.NewPipe; -import org.schabi.newpipe.extractor.ServiceList; import org.schabi.newpipe.extractor.StreamingService; import org.schabi.newpipe.extractor.exceptions.ExtractionException; import org.schabi.newpipe.extractor.stream.AudioStream; @@ -419,10 +418,6 @@ public class NavigationHelper { } public static Intent getIntentByLink(Context context, StreamingService service, String url) throws ExtractionException { - if (service != ServiceList.YouTube.getService()) { - throw new ExtractionException("Service not supported at the moment"); - } - StreamingService.LinkType linkType = service.getLinkTypeByUrl(url); if (linkType == StreamingService.LinkType.NONE) {