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.
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.