diff --git a/channels/cineblog01.py b/channels/cineblog01.py index aa9528c1d..c0cb9432c 100644 --- a/channels/cineblog01.py +++ b/channels/cineblog01.py @@ -109,7 +109,7 @@ def peliculas(item): patron = r'src="?(?P[^ "]+)"? alt="?(?P.*?)(?:\[(?P<quality>[a-zA-Z]+(?:[/]?3D)?)\]\s*)?(?:\[(?P<lang>Sub-ITA|ITA)\]\s*)?(?:\[(?P<quality2>[a-zA-Z]+(?:[/]?3D)?)\]\s*)?\((?P<year>\d{4})[^\)]*\)[^>]*>.*?<a href=(?:")?(?P<url>[^" ]+)(?:")?.*?rpwe-summary[^>]*>(?P<genre>\w+) [^ ]+ DURATA (?P<duration>[0-9]+)[^ ]+ [^ ]+ [A-Z ]+ (?P<plot>[^<]+)<' action = 'findvideos' else: - patron = r'src=(?:")?(?P<thumb>[^ "]+)(?:")? alt=(?:")?(?P<title>.*?)(?: – \d+×\d+)?(?:>|"| – )(?:(?P<lang>Sub-ITA|ITA))?[^>]*>.*?<a href=(?:")?(?P<url>[^" ]+)(?:")?.*?rpwe-summary[^>]*>(?P<genre>[^\(]*)\((?P<year>\d{4})[^\)]*\) (?P<plot>[^<]+)<' + patron = r'src=(?:")?(?P<thumb>[^ "]+)(?:")?.*?alt=(?:")?(?P<title>.*?)(?: – \d+×\d+)?(?:>|"| – )(?:(?P<lang>Sub-ITA|ITA))?[^>]*>.*?<a href=(?:")?(?P<url>[^" ]+)(?:")?.*?rpwe-summary[^>]*>(?P<genre>[^\(]*)\((?P<year>\d{4})[^\)]*\) (?P<plot>[^<]+)<' action = 'episodios' elif '/serietv/' not in item.url: diff --git a/channels/lordchannel.py b/channels/lordchannel.py index 2700c679e..9f2c48dfc 100644 --- a/channels/lordchannel.py +++ b/channels/lordchannel.py @@ -14,21 +14,36 @@ def mainlist(item): film = ['/film/', + ('Generi', ['/film/', 'genres', 'film']), ] tvshow = ['/serietv/', + ('Generi', ['/serietv/', 'genres', 'serietv']), ] anime = ['/anime/anime-ita/', + ('Generi', ['/anime/anime-ita/', 'genres', 'anime']), ('Anime SUB-Ita', ['/anime/anime-sub-ita/','peliculas']), ] search = '' return locals() +@support.scrape +def genres(item): + patronBlock = r'<ul class=\"filter(?P<block>.*?)</ul>' + patronMenu = r'<li>(?P<url>.*?)</li>' + action = 'peliculas' + + def itemHook(item): + item.title = support.typo(item.url, 'bold') + item.url = host + '/'+ item.args + '/genere/' + item.url + return item + + return locals() @support.scrape def peliculas(item): - if item.args == 'search': - action = 'check' + #if item.args == 'search': + action = 'check' patron= r'<div class="col-6.*?<img\s.*?src="(?P<thumb>[^"]+).*?<h3.*?<a\shref="(?P<url>[^"]+).*?>(?P<title>.*?)</a' patronNext = r'<li class="paginator__item paginator__item--next">.*?href="(?P<url>[^"]+)' return locals() @@ -68,11 +83,11 @@ def findvideos(item): if item.contentType == 'movie': video_url = support.match(video_url, patron=r'<a\shref="(?P<url>[^"]+)"\sclass="btn-streaming streaming_btn">').match - + video_url = support.match(video_url, patron=r'<video-js.*?src="(?P<url>[^"]+)').match if (video_url == ''): return [] - item = item.clone(server='directo', url=video_url, no_return=True) + item = item.clone(server='directo', url=video_url, no_return=True) # , manifest='hls') return support.server(item,itemlist=[item], Download=False, Videolibrary=False)