fix tvdb
This commit is contained in:
+2
-1
@@ -78,6 +78,7 @@ otvdb_global = None
|
|||||||
|
|
||||||
def find_and_set_infoLabels(item):
|
def find_and_set_infoLabels(item):
|
||||||
logger.info()
|
logger.info()
|
||||||
|
# from core.support import dbg;dbg()
|
||||||
# logger.info("item es %s" % item)
|
# logger.info("item es %s" % item)
|
||||||
|
|
||||||
p_dialog = None
|
p_dialog = None
|
||||||
@@ -94,7 +95,7 @@ def find_and_set_infoLabels(item):
|
|||||||
title = title.replace(year, "").strip()
|
title = title.replace(year, "").strip()
|
||||||
item.infoLabels['year'] = year[1:-1]
|
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']:
|
if item.infoLabels['year']:
|
||||||
otvdb_global = Tvdb(search=title, year=item.infoLabels['year'])
|
otvdb_global = Tvdb(search=title, year=item.infoLabels['year'])
|
||||||
elif item.infoLabels.get("imdb_id"):
|
elif item.infoLabels.get("imdb_id"):
|
||||||
|
|||||||
@@ -1415,6 +1415,7 @@ class Register(xbmcgui.WindowXMLDialog):
|
|||||||
class TitleOrIDWindow(xbmcgui.WindowXMLDialog):
|
class TitleOrIDWindow(xbmcgui.WindowXMLDialog):
|
||||||
def Start(self, item, scraper):
|
def Start(self, item, scraper):
|
||||||
self.item = item
|
self.item = item
|
||||||
|
self.item.exit = False
|
||||||
self.title = item.show if item.show else item.fulltitle
|
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.id = item.infoLabels.get('tmdb_id','') if scraper == 'tmdb' else item.infoLabels.get('tvdb_id','')
|
||||||
self.scraper = scraper
|
self.scraper = scraper
|
||||||
|
|||||||
Reference in New Issue
Block a user