fix ricerca altadefinizioneclick e altre piccole modifiche

This commit is contained in:
marco
2020-11-08 16:06:15 +01:00
parent 4f224de759
commit 1b427788e5
4 changed files with 8 additions and 8 deletions

View File

@@ -7,12 +7,12 @@ from core import httptools, support
from core.item import Item
from platformcode import config
# def findhost(url):
# page = httptools.downloadpage("https://filmpertutti.nuovo.live/").data
# url = scrapertools.find_single_match(page, 'Il nuovo indirizzo di FILMPERTUTTI è <a href="([^"]+)')
# return url
def findhost(url):
page = httptools.downloadpage(url).data
url = support.scrapertools.find_single_match(page, 'Il nuovo indirizzo di FILMPERTUTTI è <a href="([^"]+)')
return url
host = config.get_channel_url()
host = config.get_channel_url(findhost)
headers = [['Referer', host]]