s32x / anirip

:clapper: A Crunchyroll show/season ripper
MIT License
158 stars 37 forks source link

Subtitles change after first episode. #50

Closed ckolivas closed 4 years ago

ckolivas commented 4 years ago

On testing this on a series with multiple language subtitles, I found the subtitles changed to Spanish after the first episode in English. I added a little debugging to see why that might be and found this: [anirip] Downloading subtitles...en-US [anirip] Downloaded subtitles...en It appears the variable subLang loses the "-US" extension after the function call: subLang, err = episode.DownloadSubtitles(client, subLang, tempDir) which creates the problem.

ckolivas commented 4 years ago

Submitted a pull request to address this: https://github.com/s32x/anirip/pull/52

s32x commented 4 years ago

Good work man. Thanks again.