Movie subtitle finder
The finder can work in two modes, as a command line or integrated with Transmission Torrent client.
- Create a profile on https://www.opensubtitles.com/
- Login into the new account
- Click on profile and then "Api Consumers"
- NEW CONSUMER
- Add a name, uncheck "Allow anonymous downloads" and check "Under dev" and SAVE
- Copy the API key
- Create a fine in
/etc/go-find-subtitle.json
with the structure:
{
"opensubititles": {
"user": "<<username>>",
"pass": "<<pass>>",
"key": "<<api key>>",
"languages": "<<lang1,lang2,lang3>>"
}
}
- Download the appropriate fine from releases page https://github.com/claudiu-persoiu/go-find-subtitle/releases
- Move the file to
/usr/bin
$ ./gofindsub-linux-amd64 path_to_movie
After completing the steps above, stop transmission process:
$ sudo service transmission-daemon stop
Edit the config file located at: /etc/transmission-daemon/settings.json
NOTE: Path to config may be different for your setup, for Ubuntu desktop the path is ~/.config/transmission/settings.json
Find the lines with:
"script-torrent-done-enabled": false,
"script-torrent-done-filename": "",
and replace with:
"script-torrent-done-enabled": true,
"script-torrent-done-filename": "/path/to/installation/gofindsub",
Start the server back:
$ sudo service transmission-daemon start
NOTE: In case you need to debug Transmission installation the output is redirected to default syslog file.
If more files finish in the same time some of them may not be able to get translations because of multiple login tokens in the same time.