Fix CB01
This commit is contained in:
@@ -12,15 +12,9 @@ from platformcode import logger, config
|
|||||||
|
|
||||||
|
|
||||||
def findhost():
|
def findhost():
|
||||||
page = httptools.downloadpage('https://cb01.uno/')
|
host = httptools.downloadpage('https://cb01.uno/', follow_redirect=True).url
|
||||||
# permUrl = page.headers
|
if host == 'https://cb01.uno/':
|
||||||
# if 'location' in permUrl:
|
host = support.match(host, patron=r'<a href="([^"]+)', debug=True).match
|
||||||
# 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="([^"]+)').match
|
|
||||||
return host
|
return host
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user