Skip to content

Sonarr custom post processor script for handling subtitle download in docker containers

License

Notifications You must be signed in to change notification settings

driminicus/sonarr-sub-downloader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sonarr-sub-downloader

Sonarr custom post processor script for handling subtitle download.
Lazily edited to work with docker containers. The initial run doesn't actually search subtitles, but only adds it to 'wanted' so in order for this to work the wanted search script has to be added to crontab.
You should use the same volume for the series folder in the subliminal as you use in the sonarr docker container.

Summary

This project contains 2 main bash scripts for handling Sonarr subtitle download after a TV show has been downloaded.

The script sub-downloader.sh works perfectly as a Custom Post Processor Script for Sonarr.

The script search-wanted.sh` looks for those subtitles that were not found in previous executions of the first one.

Behind the scenes, both scripts uses subliminal as subtitle downloader engine.

Prerequisites

Have Docker available, this will run subliminal.

How to setup the script in Sonarr

  1. Download the latest release (zip or tar.gz) file.

  2. Uncompress the file

      unzip sonarr-sub-downloader-0.1.zip
      # or
      tar -xvf sonarr-sub-downloader-0.1.tar.gz
    
  3. Open Sonarr, go to: <your-sonar-host>:<port>/settings/connect

  4. Click in the '+' => Custom Script

  5. Choose a name for your script, recommended: "Subs Downloader"

  6. Enable only "On Download"

  7. Choose the path in which the script sub-downloader has been cloned.

  8. The script requires 1 argument, a comma-separated language list for the subtitles to download, for example, for download English and Spanish subtitles: -l es,en

  9. How the configuration should look like

alt example

How to enable the not found searcher to run periodically

  1. Open wanted/search-wanted.sh and edit the INVOLUMEPATH= and REALPATH= to correspond the proper path of the docker volumes and real path of the location where sonarr downloads the episodes to

  2. Run the installation script

      ./wanted/install.sh
    
  3. Check that the crontab has been setup correctly

      crontab -l
    

License

MIT

Developer Information

Original developer: Ezequiel Bergamaschi - [email protected]

Edited by Driminicus to run in docker containers.

About

Sonarr custom post processor script for handling subtitle download in docker containers

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%