SlyGuy Trailers Kodi Add-on

 

About

A plugin to enhance the Kodi trailer experience

Features

  • Trailer context menu item
  • 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)
  • Multiple playback of Youtube trailer options (see Settings 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.

Settings

You can then access the settings via Add-ons > Programs -> SlyGuy Trailers.
The add-on specific settings are under "Add-on".

Trailer Context Menu Item

When enabled, a new "Trailer" context item is added

This works on Kodi library content and any plugin content that sets a trailer on its list items.

Allow local trailers

When enabled, any local trailers stored next to the media will be used
For movies, the trailer must be named movie-trailer.ext or {movie-name}-trailer.ext
For shows, the trailer must be named tvshow-trailer.ext or {show-name}-trailer.ext
It also allows for those to be a .txt file with a single entry for the trailer.
This could be a youtube url or a plugin url or another file location

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 linked, the mdblist api will be quired using the medias unique id. If the API has a 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 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
  • Android YouTube App
    Trailer will be sent to the Android app for playback.
    An alternative YouTube app id can also be set if needed.
    This setting is only available on Android devices

  • 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

  • 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

Redirect Plugins

Most skins contain their own Trailer buttons in various places.
Often in the Movie / TV Show information dialog.
These are only shown if the skin detects a trailer on the media.
My add-on is unable to modify this behaviour as its built-in to skin / Kodi.

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.

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.
eg.
plugin://plugin.video.youtube/play/?videoid=ABC -> plugin://slyguy.trailers/play/?videoid=ABC

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.

Support

Check out the Supporter Perks

Follow