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

-i, --skip never work #53

Closed ialqwaiz closed 4 years ago

ialqwaiz commented 4 years ago

Hi Since the opt_language_suffix variable is set to auto, the skip option never works because the downloaded subtitle file name does not match the media file name since it has the language code appended to its name.

I changes the opt_language_suffix variable to off and the skip command works fine.

Thanks

emericg commented 4 years ago

Yes actually the function searching for existing file was using the language code provided in opt_languages, so if it was a 3 letter code, it usually wouldn't work with subtitles file with a 2 letter code suffix. I've improved it to search for every languages (it was only searching for the first one) and with both 3 and 2 letter codes, let me know it works for you now.