SlyGuy Trailers Kodi Add-on

About
A plugin to enhance the Kodi trailer experienceFeatures
- Add "Trailer" context menu item (right click any media -> Trailer)
- Local trailer support
Supports .txt file containing trailer url to override scraped value - mdblist api to find trailers for any suitable content
- Can use yt-dlp for YouTube playback (no login required)
- Can use Android app for YouTube playback (android only)
- Can use standard YouTube / Tubed Kodi plugins for playback
- Supports "Redirect Plugins" for YouTube / Tubed (see Redirect Plugins section below)
Install
First follow THIS post to install the SlyGuy Add-on Repository.
Navigate to "Main Menu -> Add-ons -> My Add-ons"
Select ".." then select "Install from repository"
Select "SlyGuy Repository".
Select "Program add-ons" then "SlyGuy Trailers"
Select "Install" and the addon will download and install.
Navigate to "Main Menu -> Add-ons -> My Add-ons"
Select ".." then select "Install from repository"
Select "SlyGuy Repository".
Select "Program add-ons" then "SlyGuy Trailers"
Select "Install" and the addon will download and install.
Settings
You can then access the settings via Add-ons > Programs -> SlyGuy Trailers.
The add-on specific settings are under "Add-on".
The add-on specific settings are under "Add-on".
When enabled, a new "Trailer" context item is added
For movies, the trailer must be named movie-trailer.ext or {movie-name}-trailer.ext.
eg. movie-trailer.mp4
For shows, the trailer must be named tvshow-trailer.ext or {show-name}-trailer.ext
eg. tvshow-trailer.mp4
It also allows for those to be a .txt file with a single line entry for the trailer.
This could be a youtube url or a plugin url or another file location.
eg. movie-trailer.txt with contents of https://www.youtube.com/watch?v=vKQi3bBA1y8
This option currently only works when using the context menu item.
Does not work with redirect plugins.
Allow local trailers
When enabled, any local trailers stored next to the media will be used regardless of scraped trailer.For movies, the trailer must be named movie-trailer.ext or {movie-name}-trailer.ext.
eg. movie-trailer.mp4
For shows, the trailer must be named tvshow-trailer.ext or {show-name}-trailer.ext
eg. tvshow-trailer.mp4
It also allows for those to be a .txt file with a single line entry for the trailer.
This could be a youtube url or a plugin url or another file location.
eg. movie-trailer.txt with contents of https://www.youtube.com/watch?v=vKQi3bBA1y8
This option currently only works when using the context menu item.
Does not work with redirect plugins.
Use mdblist API if no media trailer
When enabled, if media has no trailer stored, the mdblist api will be queried using the medias unique id. If the API returns a YouTube trailer for the media - that will be used.A sub-setting Search by title / year if no unique ID allows the code to do a search if the media also has no unique ID.
This option currently only works when using the context menu item.
Does not work with redirect plugins.
Play YouTube trailers with
This setting tells the add-on what to use to playback any YouTube trailers- Built-in yt-dlp (Default)
Trailer will be played back using a modified version of yt-dlp.
No login is required
Sometimes this can fail if YouTube makes changes to website.
Usually fixed pretty quickly with updating to latest yt-dlp - Android App
This setting is only visible on Android devices
Trailer will be sent to the Android app for playback.
An alternative YouTube app id can also be set if needed.
eg. com.teamsmart.videomanager.tv to use SmartTube - Kodi YouTube Plugin
Trailer will be sent to Kodis official YouTube plugin for it to play it
If using YouTube redirect plugin, using this player will cause an error - Kodi Tubed Plugin
Trailer will be sent to Kodis official Tubed plugin for it to play it
If using Tubed redirect plugin, using this player will cause an error
cookies.txt path
When using yt-dlp, this setting allows you to select a saved cookie.txt exports from your browser which can help work around yt-dlp erroring with "You need to login to access this content".
More info can be found here
More info can be found here
Fallback on failure to
When using yt-dlp as your player, a new option is available to set a 2nd player in case yt-dlp fails for whatever reason. eg. yt-dlp with a fallback to using Android App.
Android App ID
If using Android YouTibe app for playback or above fallback, you can override the Android app ID to send the url to. By default it'll just use the default player set for YouTube links.
Using this setting, you can override that to send to SmartTube for example (com.teamsmart.videomanager.tv). The app must be installed.
Using this setting, you can override that to send to SmartTube for example (com.teamsmart.videomanager.tv). The app must be installed.
Test Streams
The only way we can intercept these being used is by replacing the specific plugins they call with a new version that redirects the YouTube video ID to the SlyGuy Trailers plugin for playback.
I have created 2x redirect plugins for YouTube and Tubed plugins.
They are contained in their own SlyGuy Trailers Redirects Repository.
This is stop them overriding Kodi's version unless this repo is explicitly installed.
I have created 2x redirect plugins for YouTube and Tubed plugins.
They are contained in their own SlyGuy Trailers Redirects Repository.
This is stop them overriding Kodi's version unless this repo is explicitly installed.
To install the redirect plugin(s)
Navigate to "Main Menu -> Add-ons -> My Add-ons"Select ".." then select "Install from repository"
Select "SlyGuy Repository".
Select "Add-on repository"
Select "SlyGuy Trailers Redirects Repository" to install the repo.
Once the repo is installed, you can now install the redirect plugins from it.
Navigate to "Main Menu -> Add-ons -> My Add-ons"
Select ".." then select "Install from repository"
Select "SlyGuy Trailers Redirects Repository".
Select "Services"
Install any of the redirect plugins you require.
These are installed under "Services" to stop them showing in the main add-on screen.
They have no settings. They simply redirect their trailer to SlyGuy Trailers add-on.
Once installed, the Trailer buttons should now be using SlyGuy Trailers for playback.
If needed - to revert back to Kodis plugins, uninstall each redirect plugin and also the Redirects repository. Then simply install the Kodi versions from the Kodi repo.
Quality
When using yt-dlp, you can use the SlyGuy playback quality controls.
See my post HERE
See my post HERE