[Bandcamp] Increase accuracy of intent filters

This commit is contained in:
Fynn Godau 2021-05-26 09:01:08 +02:00
parent 6422e31b10
commit 38fb510375
1 changed files with 16 additions and 2 deletions

View File

@ -319,7 +319,7 @@
<data android:pathPrefix="/video-channels/" /> <data android:pathPrefix="/video-channels/" />
</intent-filter> </intent-filter>
<!-- Bandcamp filter --> <!-- Bandcamp filter for tracks, albums and playlists -->
<intent-filter> <intent-filter>
<action android:name="android.intent.action.VIEW"/> <action android:name="android.intent.action.VIEW"/>
<action android:name="android.media.action.MEDIA_PLAY_FROM_SEARCH"/> <action android:name="android.media.action.MEDIA_PLAY_FROM_SEARCH"/>
@ -330,9 +330,23 @@
<data android:scheme="http"/> <data android:scheme="http"/>
<data android:scheme="https"/> <data android:scheme="https"/>
<data android:host="bandcamp.com"/>
<data android:host="*.bandcamp.com"/> <data android:host="*.bandcamp.com"/>
</intent-filter> </intent-filter>
<!-- Bandcamp filter for radio -->
<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="http"/>
<data android:scheme="https"/>
<data android:sspPattern="bandcamp.com/?show=*"/>
</intent-filter>
</activity> </activity>
<service <service
android:name=".RouterActivity$FetcherService" android:name=".RouterActivity$FetcherService"