From 50675a29bce2d45bb4201d673cb9901bd733f9d2 Mon Sep 17 00:00:00 2001 From: psicotron3 <59427589+psicotron3@users.noreply.github.com> Date: Sun, 12 Jul 2020 22:24:12 -0400 Subject: [PATCH] Update service.py Fix downloading Portuguese Brazilian subtitles to match the new naming convention of open subtitles. Without this, Portuguese Brazilian subtitles filename don't have a language code. --- service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service.py b/service.py index 468f3b0..992403b 100644 --- a/service.py +++ b/service.py @@ -47,7 +47,7 @@ def Search( item ): not x['LanguageName'] == PreferredSub]) for item_data in search_data: ## hack to work around issue where Brazilian is not found as language in XBMC - if item_data["LanguageName"] == "Brazilian": + if item_data["LanguageName"] == "Portuguese (BR)": item_data["LanguageName"] = "Portuguese (Brazil)" if ((item['season'] == item_data['SeriesSeason'] and