diff --git a/core/tvdb.py b/core/tvdb.py index 5ca106ea..3fb1f656 100644 --- a/core/tvdb.py +++ b/core/tvdb.py @@ -78,6 +78,7 @@ otvdb_global = None def find_and_set_infoLabels(item): logger.info() + # from core.support import dbg;dbg() # logger.info("item es %s" % item) p_dialog = None @@ -94,7 +95,7 @@ def find_and_set_infoLabels(item): title = title.replace(year, "").strip() item.infoLabels['year'] = year[1:-1] - if item.infoLabels.get("tvdb_id") in ['', 'None']: + if item.infoLabels.get("tvdb_id", '') in ['', 'None']: if item.infoLabels['year']: otvdb_global = Tvdb(search=title, year=item.infoLabels['year']) elif item.infoLabels.get("imdb_id"): diff --git a/platformcode/platformtools.py b/platformcode/platformtools.py index 4d763281..2909c203 100644 --- a/platformcode/platformtools.py +++ b/platformcode/platformtools.py @@ -1415,6 +1415,7 @@ class Register(xbmcgui.WindowXMLDialog): class TitleOrIDWindow(xbmcgui.WindowXMLDialog): def Start(self, item, scraper): self.item = item + self.item.exit = False self.title = item.show if item.show else item.fulltitle self.id = item.infoLabels.get('tmdb_id','') if scraper == 'tmdb' else item.infoLabels.get('tvdb_id','') self.scraper = scraper