findhost in channels.json

This commit is contained in:
marco
2020-10-09 20:15:04 +02:00
parent 454ef459f5
commit 3d39fbf4fa
20 changed files with 102 additions and 108 deletions
+2 -2
View File
@@ -12,8 +12,8 @@ from platformcode import logger
from platformcode import config, unify
def findhost():
permUrl = httptools.downloadpage('https://www.tantifilm.wiki/').data
def findhost(url):
permUrl = httptools.downloadpage(url).data
host = scrapertools.find_single_match(permUrl, r'Nuovo indirizzo: <a href="([^"]+)')
return host