Merge remote-tracking branch 'origin/master'

This commit is contained in:
marco
2020-04-23 16:03:52 +02:00
3 changed files with 14 additions and 9 deletions

View File

@@ -40,6 +40,7 @@
"serietvsubita": "http://serietvsubita.xyz",
"serietvu": "https://www.serietvu.link",
"streamtime": "https://t.me/s/StreamTime",
"streamingaltadefinizione":"https://www.popcornstream.website/",
"tantifilm": "https://www.tantifilm.vip",
"toonitalia": "https://toonitalia.org",
"vedohd": "https://vedohd.uno",

View File

@@ -11,16 +11,20 @@ from lib import unshortenit
from platformcode import logger, config
# def findhost():
# permUrl = httptools.downloadpage('https://cb01-nuovo-indirizzo.info/', follow_redirects=False, only_headers=True).headers
# if 'google' in permUrl['location']:
# host = permUrl['location'].replace('https://www.google.it/search?q=site:', '')
# else:
# host = permUrl['location']
# return host
def findhost():
page = httptools.downloadpage('https://cb01-nuovo-indirizzo.info/', follow_redirects=False)
permUrl = page.headers
if 'location' in permUrl:
if 'google' in permUrl['location']:
host = permUrl['location'].replace('https://www.google.it/search?q=site:', '')
else:
host = permUrl['location']
else:
host = support.match(page.data, patron=r'<a href="([^"]+)" title="nuovo indirizzo cb01').match
return host
host = config.get_channel_url()
host = config.get_channel_url(findhost)
headers = [['Referer', host]]
list_servers = ['mixdrop', 'akstream', 'wstream', 'backin']

View File

@@ -21,7 +21,7 @@ def findhost():
host = permUrl['location']
return host
host = config.get_channel_url(findhost)
host = config.get_channel_url()
headers = [['Referer', host]]
@support.menu