miglioria support.server e fix eurostreaming

This commit is contained in:
mac12m99
2021-01-13 18:23:52 +01:00
parent c97e1744e1
commit 391bce3905
3 changed files with 29 additions and 21 deletions

View File

@@ -7,10 +7,10 @@
from core import httptools, support
from core.item import Item
def findhost(url):
permUrl = httptools.downloadpage(url, follow_redirects=False, only_headers=True).headers
host = 'https://'+permUrl['location'].replace('https://www.google.it/search?q=site:', '')
return host
# def findhost(url):
# permUrl = httptools.downloadpage(url, follow_redirects=False, only_headers=True).headers
# host = 'https://'+permUrl['location'].replace('https://www.google.it/search?q=site:', '')
# return host
host = support.config.get_channel_url()
headers = [['Referer', host]]