Skip to content

Powershell script that can be used to add trailers to your movie collection.

License

Notifications You must be signed in to change notification settings

James-Ashwin/trailers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 

Repository files navigation

trailers.ps1

Powershell script that can be used to add trailers to your movie collection. It can be used stand alone or triggered by Radarr.

This came about because I wanted trailers that my Roku will recognize and play through my Jellyfin client. So I smashed some shit together that worked for me and this is the end result.

Requirements

  • FFMPEG (included)
  • YT-DLP (included)
  • Powershell
  • A movie library with the naming convention {Movie Title} ({Release Year}), example: Ghostbusters - (1984).

Installation

  • Download and extract in a directory of your choice. Unless you edit the script it requires FFMPEG and YT-DLP to be in the same folder as the script.

If you want to connect it to Radarr make sure it is in a directory that is visible to your Radarr installation.

Use Stand Alone

This is good to do for the first use.

  • Open a PowerShell window.
  • Navigate to the installation folder.
  • Launch .\trailers.ps1 PATH_TO_MY_LIBRARY_ROOT_FOLDER (ex: .\trailers.ps1 z:\movies).
  • Wait for the script to finish.

The first run will take a little bit of time depending on the size of your collection. You can monitor download progress in the Powershell window or in the most recent log file stored under \logs.

Connect with Radarr

This is the recommended usage.

  • Open Radarr
  • Create a new Connection
    • Go to 'Settings', 'Connect', '+' and select 'Custom Script'.
  • Set the Notification Triggers to 'On Import' and 'On Rename'.
  • Set the path to your copy of trailers.ps1.
  • Test the Connection.
  • Save the Connection.

Turn off Logs

On Line 1 change "$LogActivity = $true" to "$LogActivity = $false".

About

Powershell script that can be used to add trailers to your movie collection.

Resources

License

Stars

Watchers

Forks

Packages

No packages published