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):