From 2f5c6752bde9597a43adfe2611750c2d4ea1725b Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Tue, 31 Aug 2021 20:03:20 +0200 Subject: [PATCH] Fix tmdb per contentType Undefined --- core/tmdb.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/tmdb.py b/core/tmdb.py index 20d49618..138ac242 100644 --- a/core/tmdb.py +++ b/core/tmdb.py @@ -424,6 +424,8 @@ def set_infoLabels_item(item, seekTmdb=True, search_language=def_lang, lock=None if otmdb.get_id() and config.get_setting("tmdb_plus_info", default=False): # If the search has been successful and you are not looking for a list of items, # carry out another search to expand the information + if search_type == 'multi': + search_type = 'movie' if otmdb.result.get('media_type') else 'tv' otmdb = Tmdb(id_Tmdb=otmdb.result.get("id"), search_type=search_type, search_language=search_language)