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:

image

Out-of-the-box, several are immediately available that are all functional as well as informative. A non-exhausted list includes:

  • Changing hulu.com/watch to disneyplus.com/play allows 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 Overrides may 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 change title to watch, it will play automatically. However, that only works for Movies, hence why that is in the dropdown selection For 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 with www.amazon.com/gp/video/detail/. This is on by default.

  • At the time of this program's launch, Vudu had changed its name to Fandango at Home and created a newly named app, but did not fix the app to accept Vudu links that it was still using. Since deep linking directly is not possible, this mapping says to replace any link that contains vudu.com in 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.

image

For instance, here is one for getting the provided PeacockTV Stream Links into a format that can be used with Android/Google TV:

image

  • 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-3307ea382849 and ended as...

    image

  • 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-b1983bef8bcd and ended as...

    image

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.

image

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.