From 62b405a5d6357ae4373ec2a7153c811354917f73 Mon Sep 17 00:00:00 2001 From: thepasto Date: Mon, 22 Apr 2019 10:39:59 +0200 Subject: [PATCH] Cinemastreaming fixes in tvshow search, better way to find video url --- plugin.video.alfa/channels/cinemastreaming.py | 27 ++++++++++--------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/plugin.video.alfa/channels/cinemastreaming.py b/plugin.video.alfa/channels/cinemastreaming.py index e03a1f3e..ce7834c4 100644 --- a/plugin.video.alfa/channels/cinemastreaming.py +++ b/plugin.video.alfa/channels/cinemastreaming.py @@ -54,7 +54,7 @@ def peliculas(item): patron += r'\">([^<]+)' list_groups.append("quality") - action = "findvideos" if item.contentType == "movie" or item.args == "lateste" else "episodios" + action = "findvideos" if item.contentType == "movie" else "episodios" return support.scrape(item, patron, list_groups, patronNext=patron_next, action=action) @@ -153,11 +153,21 @@ def newest(categoria): def findvideos(item): + + if item.quality.lower() in ["ended", "canceled", "returning series"]: + return episodios(item) + itemlist = [] data = scrapertoolsV2.decodeHtmlentities(httptools.downloadpage(item.url).data) btns = re.compile(r'data-tplayernv="Opt.*?>([^<]+)([^<]+)', re.DOTALL).findall(data) matches = re.compile(r']+)"' - data = httptools.downloadpage(item.url).data - url = scrapertoolsV2.find_single_match(data, patron) - - itemlist = support.server(item, url) - - return itemlist