amet/script.xbmc.subtitles — pull request #194 by dnunes (2013-07-30 03:29:15+00:00)
Title: OpenSubtitles non-standard language naming breaking "Auto Download" feature.

OpenSubtitles.org have a non-standard name for "BrazilianPortuguese" (they call it only "Brazilian", as you can see in ).
The auto download feature checks the language name to download only the main primary language and this difference was very annoying as it broke the feature--more frustrating: it said there were no "sync" matched and then presented me with a list that included "sync" matches.
I created a function to normalize these different namings ("NormalizeLangName", in utilities.py@163), although I think it may be an one-off situation. I though about checking the "language_id" ("pob", in this case) rather than the "language_name", but this is not available for all services and the "language_name" seems to be the only always available option.
It's a very minor change, but I tried to implement it in a feature-proof manner, so that it can fix other differences as well.