This script scans a directory and download the subtitles for each movie found using open subtitles API. It uses a config file (config.py) to determine the language to search, and the open subtitles credentials to use to connect the API.
Python 3
git clone git@github.com:nberard/subfinder.git
git submodule update --init
cp config.py.dist config.py
Change config.py with your open subtitles credentials, adapt it to your needs and run
./synchro_subtitles.py <pathToValidDirectory>
cp .env.dist .env
and change it to your needs
docker build -t subfinder [--build-arg uid=<the_uid_to_use_for_files_creation>] .
docker run --name subfinder -d --env-file=.env -v [your_directory_to_scan]:/data subfinder
If the script cannot find the substitles, it will add the video file to an exclude list. The exclude list is stored inside data folder and so you can reset it by deleting the file data/exclude.lst