Skip to content

Instantly share code, notes, and snippets.

@Lucane
Last active July 17, 2024 23:20
Show Gist options
  • Save Lucane/ed0dd9324232225d25c3aeba6299cce3 to your computer and use it in GitHub Desktop.
Save Lucane/ed0dd9324232225d25c3aeba6299cce3 to your computer and use it in GitHub Desktop.

Radarr Import Extra Files

A small PowerShell script to import any movie extras and subtitles that Radarr can't find.

Radarr only looks for extras and subtitles that are placed in the root directory.

This script also imports extras and subtitles hidden in subfolders.

Instructions

  • Download the script and move it somewhere safe (make sure it has the .ps1 extension).
  • Go to Radarr and navigate to Settings > Connect.
  • Add a new connection and select "Custom Script".
  • For notification triggers select "On Import" and "On Upgrade".
  • Input the location of the script.
  • Click save.

Installation

$ErrorActionPreference = "SilentlyContinue"
if ("$env:radarr_eventtype" -eq "test") { exit }
Stop-Transcript | out-null
$ErrorActionPreference = "Continue"
Start-Transcript -path $PSScriptRoot\logfile.txt -append
Move-Item -Path "$env:radarr_moviefile_sourcefolder\Featurettes" -Destination "$env:radarr_movie_path"
Move-Item -Path "$env:radarr_moviefile_sourcefolder\Extras" -Destination "$env:radarr_movie_path"
Rename-Item -Path "$env:radarr_movie_path\Extras" -NewName Featurettes
Get-ChildItem "$env:radarr_moviefile_sourcefolder\Subs" | Move-Item -Destination "$env:radarr_movie_path"
Get-ChildItem "$env:radarr_moviefile_sourcefolder\Subtitles" | Move-Item -Destination "$env:radarr_movie_path"
Stop-Transcript
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment