From a043fc3ab2fc91b8d4d23f434b98a4f6148c0440 Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Wed, 22 Sep 2021 11:19:21 +0200 Subject: [PATCH] Fix tmdb per anime --- channels/aniplay.py | 2 +- core/tmdb.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/channels/aniplay.py b/channels/aniplay.py index 12236ae9..5bd8a6e3 100644 --- a/channels/aniplay.py +++ b/channels/aniplay.py @@ -176,7 +176,7 @@ def peliculas(item): 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', plot = it['storyline'], - year = it['startDate'].split('-')[0], + # year = it['startDate'].split('-')[0], url = '{}/api/anime/{}'.format(host, it['id']), thumbnail = get_thumbnail(it), fanart = get_thumbnail(it, 'horizontalImages'))) diff --git a/core/tmdb.py b/core/tmdb.py index f7b55ab4..5ca3e790 100644 --- a/core/tmdb.py +++ b/core/tmdb.py @@ -416,7 +416,7 @@ def set_infoLabels_item(item, seekTmdb=True, search_language=def_lang, lock=None # Movie search by title ... # if item.infoLabels['year'] or item.infoLabels['filtro']: # ...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() otmdb = Tmdb(searched_text=searched_title, search_type=search_type, search_language=search_language, 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: item.infoLabels['tvshowtitle'] = scrapertools.title_unify(item.infoLabels['tvshowtitle']) item.infoLabels['title'] = scrapertools.title_unify(item.infoLabels['title']) - item.fulltitle = new_title + # item.fulltitle = new_title return True # We check what type of content it is... if item.contentType == 'movie':