Aggiornato findhost dove possibile

This commit is contained in:
Alhaziel
2019-12-27 20:03:51 +01:00
parent 935df3adb4
commit e1c3900039
5 changed files with 33 additions and 42 deletions
+6 -8
View File
@@ -17,15 +17,13 @@ from core.item import Item
from platformcode import config
#impostati dinamicamente da findhost()
host = "https://eurostreaming.pink"
headers = ""
def findhost():
pass
# global host, headers
# permUrl = httptools.downloadpage('https://eurostreaming.link/', follow_redirects=False).headers
# host = 'https://www.'+permUrl['location'].replace('https://www.google.it/search?q=site:', '')
# headers = [['Referer', host]]
permUrl = httptools.downloadpage('https://eurostreaming.link/', follow_redirects=False).headers
host = 'https://www.'+permUrl['location'].replace('https://www.google.it/search?q=site:', '')
return host
host = support.config.get_channel_url(findhost)
headers = [['Referer', host]]