Skip to content

Commit

Permalink
fix cb01 ultime aggiunte e sezione generi lordchannel
Browse files Browse the repository at this point in the history
  • Loading branch information
ilmich committed Sep 19, 2024
1 parent a6a060f commit 6d19305
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
2 changes: 1 addition & 1 deletion channels/cineblog01.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def peliculas(item):
patron = r'src="?(?P<thumb>[^ "]+)"? alt="?(?P<title>.*?)(?:\[(?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>.*?)(?: &#8211; \d+&#215;\d+)?(?:>|"| &#8211; )(?:(?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>.*?)(?: &#8211; \d+&#215;\d+)?(?:>|"| &#8211; )(?:(?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:
Expand Down
23 changes: 19 additions & 4 deletions channels/lordchannel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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)

0 comments on commit 6d19305

Please sign in to comment.