fix vedohd findhost

This commit is contained in:
mac12m99
2019-04-30 23:00:54 +02:00
parent 7b79168851
commit e11c3f4294

View File

@@ -22,7 +22,7 @@ def findhost():
data = httptools.downloadpage(cb01Url).data
global host, headers
host = scrapertoolsV2.find_single_match(data, r'<a class="?mega-menu-link"? href=(https://vedohd[^/"]+)')+'/'
host = scrapertoolsV2.find_single_match(data, r'class="?mega-menu-link"? href="?(https://vedohd[^/"]+)"?')+'/'
if 'https' not in host: # in caso cb01 cambi, si spera di riuscire ad accedere da questo URL
host = "https://vedohd.pw/"