Automatically downloads subtitles from opensubtitles.org and then syncs them using autosubsync.
The script will always name the .srt file the same as the video file.
- Python3 (Download)
- Install dependencies:
pip install -r requirements.txt
- Run subtitler.py:
python subtitler.py -i <PATH/TO/MOVIE/DIR>
Using the option "Run external program on torrent completion" you can automatically add subtitles to downloaded movies/shows.
To configure this, add this line:
python Path/To/Script/subtitler.py -i "%F"
in qBittorrent.
usage: subtitler.py [-h] -i INPUT_DIR [-ds] [-o] [-l LANG]
Automatically downloads and syncs subtitles
required arguments:
-i INPUT_DIR The directory to search for videos
options:
-h, --help show this help message and exit
-ds Pass this to disable subtitle synchronization
-o Pass this to override existing subtitles
-l LANG The language of subtitles to download (default: eng)