1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-11-30 05:52:46 +01:00
These URLs have a Path that always starts with "/watch" so no need for a
pattern.  Also, everything after the "?" is considered the "Query String",
not the Path.  Anything after a "#" is the "Feature String".  The path
matching in IntentFilters only see the Path, and nothing from the "Query
String" or "Feature String".

these are the available kinds of URLs:
https://developer.apple.com/library/ios/featuredarticles/iPhoneURLScheme_Reference/YouTubeLinks/YouTubeLinks.html
This commit is contained in:
Hans-Christoph Steiner 2016-01-01 23:32:09 +01:00
parent 28dd53ae50
commit 2a93e9bd2e

View File

@ -42,7 +42,7 @@
<data android:host="m.youtube.com" /> <data android:host="m.youtube.com" />
<data android:host="www.youtube.com" /> <data android:host="www.youtube.com" />
<data android:pathPrefix="/v/" /> <data android:pathPrefix="/v/" />
<data android:pathPattern="/?*#*/*watch" /> <data android:pathPrefix="/watch" />
</intent-filter> </intent-filter>
<intent-filter> <intent-filter>
<action android:name="android.intent.action.VIEW" /> <action android:name="android.intent.action.VIEW" />