Add Intent filter for HTTP(S) links w/MIME and (#716)

one more youtu.be host
This commit is contained in:
t0nik0 2020-03-27 20:09:54 +03:00 committed by GitHub
parent ecf722f9b2
commit 2467f06a60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 28 additions and 0 deletions

View File

@ -37,6 +37,19 @@
<data android:mimeType="video/*" />
<data android:mimeType="audio/*" />
</intent-filter>
<!-- Intent filter for HTTP(S) links with MIME type -->
<intent-filter android:label="@string/play_on_kodi">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="http" />
<data android:scheme="https" />
<data android:host="*" />
<data android:mimeType="video/*" />
<data android:mimeType="audio/*" />
<data android:mimeType="application/vnd.apple.mpegurl" />
</intent-filter>
<!-- Intent filter for sharing from youtube player -->
<intent-filter android:label="@string/play_on_kodi">
@ -52,6 +65,7 @@
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="http" />
<data android:scheme="https" />
<data android:host="youtu.be"/>
<data android:host="youtube.com"/>
<data android:host="m.youtube.com"/>
<data android:host="www.youtube.com"/>
@ -83,6 +97,19 @@
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain"/>
</intent-filter>
<!-- Intent filter for HTTP(S) links with MIME type -->
<intent-filter android:label="@string/queue_on_kodi">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="http" />
<data android:scheme="https" />
<data android:host="*" />
<data android:mimeType="video/*" />
<data android:mimeType="audio/*" />
<data android:mimeType="application/vnd.apple.mpegurl" />
</intent-filter>
<!-- Intent filter for sharing youtube URLs -->
<intent-filter android:label="@string/queue_on_kodi">
@ -91,6 +118,7 @@
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="http" />
<data android:scheme="https" />
<data android:host="youtu.be"/>
<data android:host="youtube.com"/>
<data android:host="m.youtube.com"/>
<data android:host="www.youtube.com"/>