From 523862f9baa0ecbdd37bd565b9504b9fcad8ac79 Mon Sep 17 00:00:00 2001 From: BKSteve Date: Wed, 20 Mar 2024 22:13:39 +0700 Subject: [PATCH] lang_id zero (#8739) --- sickchill/views/manage/add_shows.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sickchill/views/manage/add_shows.py b/sickchill/views/manage/add_shows.py index 457851187d..4e7f92c795 100644 --- a/sickchill/views/manage/add_shows.py +++ b/sickchill/views/manage/add_shows.py @@ -108,7 +108,7 @@ def searchIndexersForShowName(self): final_results.sort(key=lambda x: x[4].lower().index(search_term.lower())) final_results.sort(key=lambda x: x[4].lower() == search_term.lower(), reverse=True) - lang_id = sickchill.indexer[indexer].lang_dict[lang] + lang_id = sickchill.indexer[indexer or sickchill.indexer.TVDB].lang_dict[lang] return json.dumps({"results": final_results, "langid": lang_id, "success": len(final_results) > 0}) def massAddTable(self):