Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
"default": 0,
|
"default": 0,
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"visible": true,
|
"visible": true,
|
||||||
"lvalues": [ "Standard", "Ultime Aggiunte", "Lista A-Z", "Data di Uscita" ]
|
"lvalues": [ "Standard", "Ultime Aggiunte", "Lista A-Z", "Lista A-Z", "Più Vecchi", "Più Recenti", "Più Visti" ]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ def submenu(item):
|
|||||||
data = item.other
|
data = item.other
|
||||||
patronMenu = r'<input.*?name="(?P<name>[^"]+)" value="(?P<value>[^"]+)"\s*>[^>]+>(?P<title>[^<]+)<\/label>'
|
patronMenu = r'<input.*?name="(?P<name>[^"]+)" value="(?P<value>[^"]+)"\s*>[^>]+>(?P<title>[^<]+)<\/label>'
|
||||||
def itemHook(item):
|
def itemHook(item):
|
||||||
item.url = host + '/filter?' + item.name + '=' + item.value + '&dub=' + item.args + '&sort='
|
item.url = host + '/filter?' + item.name + '=' + item.value + '&dub=' + item.args + ('&sort=' if item.name != 'sort' else '')
|
||||||
return item
|
return item
|
||||||
return locals()
|
return locals()
|
||||||
|
|
||||||
@@ -141,14 +141,15 @@ def search(item, texto):
|
|||||||
|
|
||||||
@support.scrape
|
@support.scrape
|
||||||
def peliculas(item):
|
def peliculas(item):
|
||||||
data = get_data(item)
|
|
||||||
anime=True
|
anime=True
|
||||||
|
if item.args not in ['noorder', 'updated'] and not item.url[-1].isdigit(): item.url += order() # usa l'ordinamento di configura canale
|
||||||
|
data = get_data(item)
|
||||||
if item.args == 'updated':
|
if item.args == 'updated':
|
||||||
|
data = get_data(item)
|
||||||
item.contentType='episode'
|
item.contentType='episode'
|
||||||
patron=r'<div class="inner">\s*<a href="(?P<url>[^"]+)" class[^>]+>\s*<img.*?src="(?P<thumb>[^"]+)" alt?="(?P<title>[^\("]+)(?:\((?P<lang>[^\)]+)\))?"[^>]+>[^>]+>\s*(?:<div class="[^"]+">(?P<type>[^<]+)</div>)?[^>]+>[^>]+>\s*<div class="ep">[^\d]+(?P<episode>\d+)[^<]*</div>'
|
patron=r'<div class="inner">\s*<a href="(?P<url>[^"]+)" class[^>]+>\s*<img.*?src="(?P<thumb>[^"]+)" alt?="(?P<title>[^\("]+)(?:\((?P<lang>[^\)]+)\))?"[^>]+>[^>]+>\s*(?:<div class="[^"]+">(?P<type>[^<]+)</div>)?[^>]+>[^>]+>\s*<div class="ep">[^\d]+(?P<episode>\d+)[^<]*</div>'
|
||||||
action='findvideos'
|
action='findvideos'
|
||||||
else:
|
else:
|
||||||
if item.args != 'noorder' and not item.url[-1].isdigit(): item.url += order() # usa l'ordinamento di configura canale
|
|
||||||
patron= r'<div class="inner">\s*<a href="(?P<url>[^"]+)" class[^>]+>\s*<img.*?src="(?P<thumb>[^"]+)" alt?="(?P<title>[^\("]+)(?:\((?P<year>\d+)\) )?(?:\((?P<lang>[^\)]+)\))?"[^>]+>[^>]+>(?:\s*<div class="(?P<l>[^"]+)">[^>]+>)?\s*(?:<div class="[^"]+">(?P<type>[^<]+)</div>)?'
|
patron= r'<div class="inner">\s*<a href="(?P<url>[^"]+)" class[^>]+>\s*<img.*?src="(?P<thumb>[^"]+)" alt?="(?P<title>[^\("]+)(?:\((?P<year>\d+)\) )?(?:\((?P<lang>[^\)]+)\))?"[^>]+>[^>]+>(?:\s*<div class="(?P<l>[^"]+)">[^>]+>)?\s*(?:<div class="[^"]+">(?P<type>[^<]+)</div>)?'
|
||||||
action='episodios'
|
action='episodios'
|
||||||
|
|
||||||
|
|||||||
@@ -177,7 +177,7 @@ def findvideos(item):
|
|||||||
support.log()
|
support.log()
|
||||||
itemlist=[]
|
itemlist=[]
|
||||||
url = support.match(support.match(item).data.replace('"','"').replace('\\',''), patron=r'video_url"\s*:\s*"([^"]+)"').match
|
url = support.match(support.match(item).data.replace('"','"').replace('\\',''), patron=r'video_url"\s*:\s*"([^"]+)"').match
|
||||||
playlist = support.match(url, patron=r'\./([^.]+)').matches
|
playlist = support.match(url.replace('https','http'), patron=r'\./([^.]+)').matches
|
||||||
for res in playlist:
|
for res in playlist:
|
||||||
itemlist.append(item.clone(title=support.config.get_localized_string(30137), server='directo', url=url.replace('playlist',res), quality=res, action='play'))
|
itemlist.append(item.clone(title=support.config.get_localized_string(30137), server='directo', url=url.replace('playlist',res), quality=res, action='play'))
|
||||||
return support.server(item, itemlist=itemlist)
|
return support.server(item, itemlist=itemlist)
|
||||||
+3
-3
@@ -209,10 +209,10 @@ def extract_videos(video_id):
|
|||||||
opt = dict(opt)
|
opt = dict(opt)
|
||||||
if "audioQuality" not in opt:
|
if "audioQuality" not in opt:
|
||||||
continue
|
continue
|
||||||
if "cipher" in opt:
|
if "signatureCipher" in opt and opt['mimeType'].startswith('video'):
|
||||||
signature = get_signature(youtube_page_data)
|
signature = get_signature(youtube_page_data)
|
||||||
cipher = dict(urlparse.parse_qsl(urllib.unquote(opt["cipher"])))
|
cipher = dict(urlparse.parse_qsl(urllib.unquote(opt["signatureCipher"])))
|
||||||
url = re.search('url=(.*)', opt["cipher"]).group(1)
|
url = re.search('url=(.*)', opt["signatureCipher"]).group(1)
|
||||||
s = cipher.get('s')
|
s = cipher.get('s')
|
||||||
url = "%s&sig=%s" % (urllib.unquote(url), signature([s]))
|
url = "%s&sig=%s" % (urllib.unquote(url), signature([s]))
|
||||||
video_urls.append(["%s" % itag_list.get(opt["itag"], "video"), url])
|
video_urls.append(["%s" % itag_list.get(opt["itag"], "video"), url])
|
||||||
|
|||||||
Reference in New Issue
Block a user