Altri Fix
This commit is contained in:
+2
-2
@@ -336,8 +336,8 @@ def scrapeBlock(item, args, block, patron, headers, action, pagination, debug, t
|
|||||||
infoLabels=infolabels,
|
infoLabels=infolabels,
|
||||||
thumbnail=item.thumbnail if function == 'episodios' or not scraped["thumb"] else scraped["thumb"],
|
thumbnail=item.thumbnail if function == 'episodios' or not scraped["thumb"] else scraped["thumb"],
|
||||||
args=item.args,
|
args=item.args,
|
||||||
contentSerieName= item.contentSerieName if item.contentSerieName else title if 'movie' not in [item.contentType, CT] and function == 'episodios' else item.fulltitle,
|
contentSerieName= item.contentSerieName if item.contentSerieName and function == 'peliculas' else title if 'movie' not in [item.contentType, CT] and function == 'episodios' else item.fulltitle,
|
||||||
contentTitle=item.contentTitle if item.contentTitle else title if 'movie' in [item.contentType, CT] else '',
|
contentTitle=item.contentTitle if item.contentTitle and function == 'peliculas' else title if 'movie' in [item.contentType, CT] and function == 'peliculas' else '',
|
||||||
contentLanguage = lang1,
|
contentLanguage = lang1,
|
||||||
contentEpisodeNumber=episode if episode else '',
|
contentEpisodeNumber=episode if episode else '',
|
||||||
news= item.news if item.news else '',
|
news= item.news if item.news else '',
|
||||||
|
|||||||
+5
-6
@@ -462,11 +462,11 @@ def set_infoLabels_item(item, seekTmdb=True, idioma_busqueda=def_lang, lock=None
|
|||||||
year=item.infoLabels['year'])
|
year=item.infoLabels['year'])
|
||||||
else:
|
else:
|
||||||
# Busqueda de pelicula por titulo...
|
# Busqueda de pelicula por titulo...
|
||||||
if item.infoLabels['year'] or item.infoLabels['filtro']:
|
# if item.infoLabels['year'] or item.infoLabels['filtro']:
|
||||||
# ...y año o filtro
|
# ...y año o filtro
|
||||||
searched_title = item.contentTitle if item.contentTitle else item.fulltitle
|
searched_title = item.contentTitle if item.contentTitle else item.fulltitle
|
||||||
otmdb = Tmdb(texto_buscado=searched_title, tipo=tipo_busqueda, idioma_busqueda=idioma_busqueda,
|
otmdb = Tmdb(texto_buscado=searched_title, tipo=tipo_busqueda, idioma_busqueda=idioma_busqueda,
|
||||||
filtro=item.infoLabels.get('filtro', {}), year=item.infoLabels['year'])
|
filtro=item.infoLabels.get('filtro', {}), year=item.infoLabels['year'])
|
||||||
if otmdb is not None:
|
if otmdb is not None:
|
||||||
if otmdb.get_id() and config.get_setting("tmdb_plus_info", default=False):
|
if otmdb.get_id() and config.get_setting("tmdb_plus_info", default=False):
|
||||||
# Si la busqueda ha dado resultado y no se esta buscando una lista de items,
|
# Si la busqueda ha dado resultado y no se esta buscando una lista de items,
|
||||||
@@ -480,7 +480,6 @@ def set_infoLabels_item(item, seekTmdb=True, idioma_busqueda=def_lang, lock=None
|
|||||||
# La busqueda ha encontrado un resultado valido
|
# La busqueda ha encontrado un resultado valido
|
||||||
__leer_datos(otmdb)
|
__leer_datos(otmdb)
|
||||||
return len(item.infoLabels)
|
return len(item.infoLabels)
|
||||||
|
|
||||||
# La busqueda en tmdb esta desactivada o no ha dado resultado
|
# La busqueda en tmdb esta desactivada o no ha dado resultado
|
||||||
# item.contentType = item.infoLabels['mediatype']
|
# item.contentType = item.infoLabels['mediatype']
|
||||||
return -1 * len(item.infoLabels)
|
return -1 * len(item.infoLabels)
|
||||||
|
|||||||
Reference in New Issue
Block a user