/custom-sub-import

A toolbox for importing subtitles from grabbed media for Radarr and Sonarr

Primary LanguagePython

custom-sub-import

A toolbox for importing subtitles from grabbed media for Radarr and Sonarr. It locates subtitles alongside downloaded items, and copies them to nicely named files in the destination.

Currently, it only supports SRT file and English subtitles for RARBG and VXT release groups. Within that set, it will attempt to locate normal, forced and SDH subtitles, based on the number of files found and the various sizes.

Features

  • Handles sonarr and radarr custom scripts
  • Locates subtitles based on *arr provided values, with fallback for oddly released/named files
  • Handles forced, normal and SDH subtitles (based on sizing)
  • No external dependencies

Installation

  1. Place 01-install-python.sh into /custom-cont-init.d/ of your container (see the LinuxServer.io blog post for details)
  2. Place custom-sub-import.py and locate.py somewhere accessible in the container such as /config/scripts
  3. Under Settings -> Connect, add as a custom script for "On Import" and "On Upgrade"

Mostly setup for use with the LinuxServer.io containers, but should would or be adaptable for other setups.