fix server nel geniodellostreaming

This commit is contained in:
mac12m99
2021-02-06 18:41:09 +01:00
parent 7d0dcfc487
commit 0ebc744115

View File

@@ -168,7 +168,7 @@ def newest(categoria):
def findvideos(item):
info()
matches = support.match(item, patron=[r'class="metaframe rptss" src="([^"]+)"',r' href="#option-\d">([^\s]+)\s*([^\s]+)']).matches
matches = support.match(item, patron=[r'var ilinks\s?=\s?([^;]+)',r' href="#option-\d">([^\s]+)\s*([^\s]+)']).matches
itemlist = []
list_url = []
list_quality = []
@@ -178,9 +178,14 @@ def findvideos(item):
list_servers.append(match[0])
list_quality.append(match[1])
else:
if 'player.php' in match:
match = support.httptools.downloadpage(match, follow_redirect=True).url
list_url.append(match)
import ast, base64
encLinks = ast.literal_eval(match)
for link in encLinks:
linkDec = base64.b64decode(link.encode()).decode()
if 'player.php' in linkDec:
linkDec = support.httptools.downloadpage(linkDec, only_headers=True, follow_redirects=False).headers['Location']
list_url.append(linkDec)
if list_servers:
for i, url in enumerate(list_url):
itemlist.append(support.Item(