This commit is contained in:
mac12m99
2021-02-20 11:36:58 +01:00
parent 02931ef2a1
commit 34c74849b0
2 changed files with 7 additions and 7 deletions

View File

@@ -9,14 +9,14 @@ from core import scrapertools, httptools, servertools, support
from platformcode import logger, config
def findhost(url):
host = httptools.downloadpage(url, follow_redirect=True).url
if host == 'https://cb01.uno/':
host = support.match(host, patron=r'<a href="([^"]+)', debug=True).match
return host
# def findhost(url):
# host = httptools.downloadpage(url, follow_redirect=True).url
# if host == 'https://cb01.uno/':
# host = support.match(host, patron=r'<a href="([^"]+)').match
# return host
host = config.get_channel_url(findhost)
host = config.get_channel_url()
headers = [['Referer', host]]