From a7ceb48d0e060ea5a222b062d625d5a3ab6fc9c1 Mon Sep 17 00:00:00 2001 From: Alhaziel Date: Sat, 11 May 2019 19:42:56 +0200 Subject: [PATCH] Improvements --- channels/tantifilm.py | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/channels/tantifilm.py b/channels/tantifilm.py index 0a366a53..d706f154 100644 --- a/channels/tantifilm.py +++ b/channels/tantifilm.py @@ -90,21 +90,27 @@ def search_peliculas(item): action = 'findvideos' if item.extra == 'movie' else 'episodios' - data = httptools.downloadpage(item.url, headers=headers, ignore_response_code=True).data - patron = r'\s*\s*

([^<]+)<\/p>' matches = re.compile(patron, re.MULTILINE).findall(data) - for url, title, thumb in matches: + for url, title, year, thumb, quality in matches: + infoLabels = {} + infoLabels['year'] = year title = scrapertoolsV2.decodeHtmlentities(title) + quality = scrapertoolsV2.decodeHtmlentities(quality) + longtitle = title + support.typo(quality,'_ [] color kod') itemlist.append( Item(channel=item.channel, action=action, contentType=item.contentType, fulltitle=title, show=title, - title=title, + title=longtitle, url=url, thumbnail=thumb, + infoLabels=infoLabels, args=item.args)) tmdb.set_infoLabels_itemlist(itemlist, seekTmdb=True) @@ -122,11 +128,11 @@ def peliculas(item): log() action = 'findvideos' if item.extra == 'movie' else 'episodios' if item.args == 'movie': - patron= r'

[^<]+]+>[^<]+]+>[^<]+<\/a>' - itemlist = support.scrape(item, patron, ['url', 'title', 'thumb'], headers, action=action, patronNext='