Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
c27e9d5901
2 changed files with 15 additions and 5 deletions
|
@ -169,6 +169,21 @@
|
||||||
<category android:name="android.intent.category.DEFAULT"/>
|
<category android:name="android.intent.category.DEFAULT"/>
|
||||||
<category android:name="android.intent.category.BROWSABLE"/>
|
<category android:name="android.intent.category.BROWSABLE"/>
|
||||||
|
|
||||||
|
<data android:scheme="http"/>
|
||||||
|
<data android:scheme="https"/>
|
||||||
|
<data android:host="soundcloud.com"/>
|
||||||
|
<data android:host="m.soundcloud.com"/>
|
||||||
|
<data android:host="www.soundcloud.com"/>
|
||||||
|
<data android:pathPrefix="/"/>
|
||||||
|
</intent-filter>
|
||||||
|
<intent-filter>
|
||||||
|
<action android:name="android.intent.action.VIEW"/>
|
||||||
|
<action android:name="android.media.action.MEDIA_PLAY_FROM_SEARCH"/>
|
||||||
|
<action android:name="android.nfc.action.NDEF_DISCOVERED"/>
|
||||||
|
|
||||||
|
<category android:name="android.intent.category.DEFAULT"/>
|
||||||
|
<category android:name="android.intent.category.BROWSABLE"/>
|
||||||
|
|
||||||
<data android:scheme="vnd.youtube"/>
|
<data android:scheme="vnd.youtube"/>
|
||||||
<data android:scheme="vnd.youtube.launch"/>
|
<data android:scheme="vnd.youtube.launch"/>
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
|
|
|
@ -20,7 +20,6 @@ import org.schabi.newpipe.R;
|
||||||
import org.schabi.newpipe.about.AboutActivity;
|
import org.schabi.newpipe.about.AboutActivity;
|
||||||
import org.schabi.newpipe.download.DownloadActivity;
|
import org.schabi.newpipe.download.DownloadActivity;
|
||||||
import org.schabi.newpipe.extractor.NewPipe;
|
import org.schabi.newpipe.extractor.NewPipe;
|
||||||
import org.schabi.newpipe.extractor.ServiceList;
|
|
||||||
import org.schabi.newpipe.extractor.StreamingService;
|
import org.schabi.newpipe.extractor.StreamingService;
|
||||||
import org.schabi.newpipe.extractor.exceptions.ExtractionException;
|
import org.schabi.newpipe.extractor.exceptions.ExtractionException;
|
||||||
import org.schabi.newpipe.extractor.stream.AudioStream;
|
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 {
|
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);
|
StreamingService.LinkType linkType = service.getLinkTypeByUrl(url);
|
||||||
|
|
||||||
if (linkType == StreamingService.LinkType.NONE) {
|
if (linkType == StreamingService.LinkType.NONE) {
|
||||||
|
|
Loading…
Reference in a new issue