Aggiustamenti a TVDB e TMDB

This commit is contained in:
Alhaziel01
2020-11-07 13:01:28 +01:00
parent f35db58f70
commit 47d2144b0a
5 changed files with 22 additions and 17 deletions
+2 -1
View File
@@ -57,8 +57,9 @@ def find_and_set_infoLabels(item):
while scraper or not item.exit:
# We call the find_and_set_infoLabels function of the selected scraper
scraper_result = scraper.find_and_set_infoLabels(item)
if item.exit: return False
# Check if there is a 'code'
if scraper_result and item.infoLabels['code']:
elif scraper_result and item.infoLabels['code']:
# correct code
logger.info("Identifier found: %s " % item.infoLabels['code'])
scraper.completar_codigos(item)
+1 -2
View File
@@ -524,13 +524,12 @@ def find_and_set_infoLabels(item):
otmdb_global = Tmdb(id_Tmdb=item.infoLabels['tmdb_id'], tipo=tipo_busqueda, idioma_busqueda=def_lang)
results = otmdb_global.get_list_resultados()
if len(results) > 1:
from platformcode import platformtools
tmdb_result = platformtools.show_video_info(results, item=item, caption= tipo_contenido % title)
if not tmdb_result:
res = platformtools.dialog_info(item, 'tmdb')
if res: return find_and_set_infoLabels(res)
if not res.exit: return find_and_set_infoLabels(res)
elif len(results) > 0:
tmdb_result = results[0]
+1 -1
View File
@@ -116,7 +116,7 @@ def find_and_set_infoLabels(item):
tvdb_result = platformtools.show_video_info(results, item=item, scraper=Tvdb, caption=config.get_localized_string(60298) % title)
if not tvdb_result:
res = platformtools.dialog_info(item, 'tvdb')
if res: return find_and_set_infoLabels(res)
if not res.exit: return find_and_set_infoLabels(res)
elif len(results) > 0:
tvdb_result = results[0]