Fix tmdb per anime
This commit is contained in:
+1
-1
@@ -176,7 +176,7 @@ def peliculas(item):
|
|||||||
contentSerieName = title if it['type'] == 'Serie' else '',
|
contentSerieName = title if it['type'] == 'Serie' else '',
|
||||||
action ='findvideos' if it['type'] == 'Movie' else 'episodios',# '' if not active else 'findvideos' if it['type'] == 'Movie' else 'episodios',
|
action ='findvideos' if it['type'] == 'Movie' else 'episodios',# '' if not active else 'findvideos' if it['type'] == 'Movie' else 'episodios',
|
||||||
plot = it['storyline'],
|
plot = it['storyline'],
|
||||||
year = it['startDate'].split('-')[0],
|
# year = it['startDate'].split('-')[0],
|
||||||
url = '{}/api/anime/{}'.format(host, it['id']),
|
url = '{}/api/anime/{}'.format(host, it['id']),
|
||||||
thumbnail = get_thumbnail(it),
|
thumbnail = get_thumbnail(it),
|
||||||
fanart = get_thumbnail(it, 'horizontalImages')))
|
fanart = get_thumbnail(it, 'horizontalImages')))
|
||||||
|
|||||||
+2
-2
@@ -416,7 +416,7 @@ def set_infoLabels_item(item, seekTmdb=True, search_language=def_lang, lock=None
|
|||||||
# Movie search by title ...
|
# Movie search by title ...
|
||||||
# if item.infoLabels['year'] or item.infoLabels['filtro']:
|
# if item.infoLabels['year'] or item.infoLabels['filtro']:
|
||||||
# ...and year or filter
|
# ...and year or filter
|
||||||
searched_title = scrapertools.unescape(item.contentTitle if item.contentTitle else item.fulltitle)
|
searched_title = scrapertools.unescape(item.infoLabels['title'])
|
||||||
searched_title = searched_title.split('-')[0].strip()
|
searched_title = searched_title.split('-')[0].strip()
|
||||||
otmdb = Tmdb(searched_text=searched_title, search_type=search_type, search_language=search_language,
|
otmdb = Tmdb(searched_text=searched_title, search_type=search_type, search_language=search_language,
|
||||||
filtro=item.infoLabels.get('filtro', {}), year=item.infoLabels['year'])
|
filtro=item.infoLabels.get('filtro', {}), year=item.infoLabels['year'])
|
||||||
@@ -442,7 +442,7 @@ def set_infoLabels_item(item, seekTmdb=True, search_language=def_lang, lock=None
|
|||||||
if new_title != item.fulltitle:
|
if new_title != item.fulltitle:
|
||||||
item.infoLabels['tvshowtitle'] = scrapertools.title_unify(item.infoLabels['tvshowtitle'])
|
item.infoLabels['tvshowtitle'] = scrapertools.title_unify(item.infoLabels['tvshowtitle'])
|
||||||
item.infoLabels['title'] = scrapertools.title_unify(item.infoLabels['title'])
|
item.infoLabels['title'] = scrapertools.title_unify(item.infoLabels['title'])
|
||||||
item.fulltitle = new_title
|
# item.fulltitle = new_title
|
||||||
return True
|
return True
|
||||||
# We check what type of content it is...
|
# We check what type of content it is...
|
||||||
if item.contentType == 'movie':
|
if item.contentType == 'movie':
|
||||||
|
|||||||
Reference in New Issue
Block a user