altadefinizione: fix title, lang and others (#456)
This commit is contained in:
+14
-14
@@ -19,7 +19,7 @@ headers = [['Referer', host]]
|
|||||||
@support.menu
|
@support.menu
|
||||||
def mainlist(item):
|
def mainlist(item):
|
||||||
|
|
||||||
film = ['',
|
film = ['/category/film/',
|
||||||
('Al Cinema', ['/category/ora-al-cinema/', 'peliculas']),
|
('Al Cinema', ['/category/ora-al-cinema/', 'peliculas']),
|
||||||
('Generi', ['', 'genres']),
|
('Generi', ['', 'genres']),
|
||||||
# ('Sub-ITA', ['/sub-ita/', 'peliculas'])
|
# ('Sub-ITA', ['/sub-ita/', 'peliculas'])
|
||||||
@@ -51,7 +51,7 @@ def genres(item):
|
|||||||
|
|
||||||
def search(item, text):
|
def search(item, text):
|
||||||
logger.debug(text)
|
logger.debug(text)
|
||||||
item.url = "{}/?s={}".format(host, text)
|
item.url = "{}/?{}".format(host, support.urlencode({'s': text}))
|
||||||
item.args = 'search'
|
item.args = 'search'
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@@ -68,10 +68,10 @@ def search(item, text):
|
|||||||
def peliculas(item):
|
def peliculas(item):
|
||||||
item.contentType = "undefined"
|
item.contentType = "undefined"
|
||||||
action = 'check'
|
action = 'check'
|
||||||
patron = r'<h2 class=\"titleFilm\"><a href=\"(?P<url>[^\"]+)\">(?P<title>[a-zA-Z\d\s’–:\.-]*)\s*\[?(?P<quality>[a-zA-Z]*)\]?\s*\(?(?P<year>[0-9]*)\)?'
|
patron = r'<h2 class=\"titleFilm\"><a href=\"(?P<url>[^\"]+)\">(?P<title>[^<[(]+)\s*\(?(?P<lang>[a-zA-Z-]*)\)?\s*\[?(?P<quality>[a-zA-Z]*)\]?\s*\(?(?P<year>[0-9]*)\)?'
|
||||||
|
|
||||||
if item.args == 'search':
|
if item.args == 'search':
|
||||||
patron = r'<div class="col-lg-3 col-md-3 [^>]*> <a href=\"(?P<url>[^\"]+)\">.*?(?=<h5).*?(?=>)>(?P<title>[a-zA-Z\d\s’–:\.\'-]*)\s*\[?(?P<quality>[a-zA-Z]*)\]?\s*\(?(?P<year>[0-9]*)\)?'
|
patron = r'<div class="col-lg-3 col-md-3 [^>]*> <a href=\"(?P<url>[^\"]+)\">.*?(?=<h5).*?(?=>)>(?P<title>[^<[(]+)\s*\(?(?P<lang>[a-zA-Z-]*)\)?\s*\[?(?P<quality>[a-zA-Z]*)\]?\s*\(?(?P<year>[0-9]*)\)?'
|
||||||
patronNext = r'href="([^"]+)[^>]+>Successivo'
|
patronNext = r'href="([^"]+)[^>]+>Successivo'
|
||||||
return locals()
|
return locals()
|
||||||
|
|
||||||
@@ -81,7 +81,7 @@ def episodios(item):
|
|||||||
item.quality = ''
|
item.quality = ''
|
||||||
data = item.data
|
data = item.data
|
||||||
action='findvideos'
|
action='findvideos'
|
||||||
patron = r'<div class="episode-wrap".*?(?=<li class="season-no">).*?(?=>)>(?P<episode>[^<]+).*?(?=<a)<a href="(?P<url>[^\"]+).*?(?=>)>(?P<title>[a-zA-Z\d\s’–:\.\'-]*)'
|
patron = r'<div class="episode-wrap".*?(?=<li class="season-no">).*?(?=>)>(?P<episode>[^<]+).*?(?=<a)<a href="(?P<url>[^\"]+).*?(?=>)>(?P<title>[^<[(]+)'
|
||||||
return locals()
|
return locals()
|
||||||
|
|
||||||
|
|
||||||
@@ -95,12 +95,12 @@ def check(item):
|
|||||||
|
|
||||||
|
|
||||||
def findvideos(item):
|
def findvideos(item):
|
||||||
logger.debug()
|
video_url = item.url
|
||||||
#support.dbg()
|
|
||||||
if not item.data:
|
if item.contentType == 'movie':
|
||||||
item.data = httptools.downloadpage(item.url).data
|
video_url = support.match(item, patron=r'<div class="embed-player" data-id=\"(https://.*?)\"').match
|
||||||
data = item.data
|
|
||||||
if item.contentType == 'movie' and isinstance(item.data, str):
|
itemlist = [item.clone(action="play", url=srv) for srv in support.match(video_url, patron='<div class="megaButton" meta-type="v" meta-link="([^"]+).*?(?=>)>').matches]
|
||||||
data = support.match(support.match(item.data, patron=r'<div class="embed-player" data-id=\"(https://.*?)\"').match).data
|
itemlist = support.server(item,itemlist=itemlist)
|
||||||
item.data = ''
|
|
||||||
return support.server(item, data)
|
return itemlist
|
||||||
|
|||||||
Reference in New Issue
Block a user