From 6bc4b7199c1eed191a4b9c8f1e066c368126c872 Mon Sep 17 00:00:00 2001 From: mac12m99 Date: Sun, 27 Oct 2019 11:20:41 +0100 Subject: [PATCH] fix ultimi problemi cb01 e streamingaltadefinizione --- channels/cineblog01.py | 2 +- core/support.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/channels/cineblog01.py b/channels/cineblog01.py index 289df775..bb10c29a 100644 --- a/channels/cineblog01.py +++ b/channels/cineblog01.py @@ -119,7 +119,7 @@ def peliculas(item): patron = r'
.*?]+)(?:\/|")>(?P[^<[(]+)(?:\[(?P<quality>[A-Za-z0-9/-]+)])? (?:\((?P<year>[0-9]{4})\))?.*?<strong>(?P<genre>[^<>&–]+).*?DURATA (?P<duration>[0-9]+).*?<br(?: /)?>(?P<plot>[^<>]+)' action = 'findvideos' else: - patron = r'div class="card-image">.*?<img src="(?P<thumb>[^ ]+)" alt.*?<a href="(?P<url>[^ >]+)">(?P<title>[^<[(]+)<\/a>.*?<strong><span style="[^"]+">(?P<genre>[^<>0-9(]+)\((?P<year>[0-9]{4}).*?</(?:p|div)>(?P<plot>.*?)</div' + patron = r'div class="card-image">.*?<img src="(?P<thumb>[^ ]+)" alt.*?<a href="(?P<url>[^ >]+)">(?P<title>[^<[(]+)<\/a>.*?(?:<strong><span style="[^"]+">(?P<genre>[^<>0-9(]+)\((?P<year>[0-9]{4}).*?</(?:p|div)>(?P<plot>.*?))?</div' action = 'episodios' item.contentType = 'tvshow' diff --git a/core/support.py b/core/support.py index 093d528f..7e8aeceb 100644 --- a/core/support.py +++ b/core/support.py @@ -478,6 +478,7 @@ def dooplay_get_links(item, host): @scrape def dooplay_get_episodes(item): + item.contentType = 'tvshow' patron = '<li class="mark-[0-9]+">.*?<img.*?(?:data-lazy-)?src="(?P<thumb>[^"]+).*?(?P<episode>[0-9]+ - [0-9]+).*?<a href="(?P<url>[^"]+)">(?P<title>[^<>]+).*?(?P<year>[0-9]{4})' actLike = 'episodios'