Usage ‐ SLM ‐ Settings: Stream Link Mappings - babsonnexus/stream-link-manager-for-channels GitHub Wiki
SLM uses JustWatch as the source for the final generated Stream Links. While a process is undertaken to "clean" the links of any tracking information, some may still be imperfect or have ways to work better with a "mapping". You have the ability to activate and/or create/delete those mappings:
Out-of-the-box, several are immediately available that are all functional as well as informative. A non-exhausted list includes:
-
Changing
hulu.com/watchtodisneyplus.com/playallows Hulu content to play within in the Disney+ app. This is off by default, but can be activated by clicking the checkbox and saving. It should be noted that not all Hulu content is available within Disney+. To work around this,Stream Link Overridesmay be used as discussed below. -
All Netflix Movies and Shows come from JustWatch with a link that contains
netflix.com/title, which goes to the landing page of that content. However, if you changetitletowatch, it will play automatically. However, that only works for Movies, hence why that is in the dropdown selectionFor Object Type. This is on be default. -
While JustWatch does provide Amazon links directly for Movies and Shows, the links that are given do not work in all situations, notably on Apple TV and the web. To get around this, the links can be converted with the string
watch.amazon.com/detail?gti=being replaced withwww.amazon.com/gp/video/detail/. This is on by default. -
At the time of this program's launch,
Vuduhad changed its name toFandango at Homeand created a newly named app, but did not fix the app to acceptVudulinks that it was still using. Since deep linking directly is not possible, this mapping says to replace any link that containsvudu.comin its entirety with a link that will just launch their app generically. This is off by default.
You can also do pattern recognition using regular expressions (REGEX) in order to accomplish a replacement.
For instance, here is one for getting the provided PeacockTV Stream Links into a format that can be used with Android/Google TV:
- If 'Stream Link' contains:
peacocktv.com/watch/asset/.+?/([a-zA-Z0-9\\-]+)$ - For 'Object Type:
MOVIE or SHOW - Do this activity:
Replace pattern (REGEX) with... - Using this:
peacocktv.com/deeplink?deeplinkData={"pvid":"\1","type":"PROGRAMME","action":"PLAY"}
This results in the following for a Movie and TV Show:
-
Example Movie started as
https://www.peacocktv.com/watch/asset/movies/reality-bites-a-hannah-swensen-mystery/b6347be0-cbe9-34c5-afef-3307ea382849and ended as... -
Example TV Show episode started as
https://www.peacocktv.com/watch/asset/tv/pride-and-prejudice/6377756605557637112/seasons/1/episodes/--episode-1/e2c7c82f-1f4e-3916-a6af-b1983bef8bcdand ended as...
If for some reason an application has not been set up to accept deep links or was built incorrectly so it has improper behavior, you could also make the mapping just open up the app directly. For Android/Google TV (depending upon Android version and setup of the media client app), you can use the intent:// command to open up an application. For example, Kanopy (kanopy.com) would be intent://com.kanopy.tvapp and Hoopla (hoopladigital.com) would be intent://com.hoopladigital.android.
Although this means it will not go to the content directly and you will have to search for it, it will at the very least open the correct app where the content lives.
No matter the approach, it is not required to set these Stream Link Mappings immediately; they can be added, deleted, or modified at any time.