emericg / OpenSubtitlesDownload

Automatically find and download the right subtitles for your favorite videos!
https://emeric.io/OpenSubtitlesDownload
GNU General Public License v3.0
581 stars 63 forks source link

Specifying download location #37

Closed cjaustin1792 closed 6 years ago

cjaustin1792 commented 6 years ago

Is it possible to specify where the output files go. I want too download subtitles for all my films but they are mounted through a read only drive so I cant write too there separate folders.

emericg commented 6 years ago

Hi, this is a weird case.

I definitly won't code this into the script but you can just add this code:

# Custom path
outputdir = "/home/whatever/dir/"
subPath = outputdir + subPath.rsplit('/', 1)[1]

in the script, right before "# Download and unzip the selected subtitles". You can add a custom "-o" option to the argument parsing to customize the output dir pretty easily. Hope that fit your needs.

cjaustin1792 commented 6 years ago

Thank you very much for this.

emericg commented 5 years ago

Allright due to popular demand I actually coded this into the script ^^ You can now use -o with the CLI!