This commit is contained in:
Alhaziel01
2020-11-15 13:09:17 +01:00
parent e974ab740f
commit 71215dcba2
2 changed files with 3 additions and 1 deletions

View File

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

View File

@@ -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