diff --git a/channels/altadefinizione01.py b/channels/altadefinizione01.py index 5bf3f201..cf1764df 100644 --- a/channels/altadefinizione01.py +++ b/channels/altadefinizione01.py @@ -18,15 +18,15 @@ from core.item import Item from platformcode import config, logger #impostati dinamicamente da findhost() -host = "https://www.altadefinizione01.cc" -headers = "" def findhost(): - pass - # global host, headers - # data = httptools.downloadpage('https://altadefinizione01-nuovo.link/').data - # host = scrapertoolsV2.find_single_match(data, '
') - # headers = [['Referer', host]] + data = httptools.downloadpage('https://serietvonline.me/').data + host = scrapertoolsV2.find_single_match(data, r'') + return host + +host = config.get_channel_url(findhost) +headers = [['Referer', host]] list_servers = ['akvideo', 'wstream', 'backin', 'vidtome', 'nowvideo'] list_quality = ['default'] diff --git a/channels/streamingaltadefinizione.py b/channels/streamingaltadefinizione.py index b964d84d..0240c786 100644 --- a/channels/streamingaltadefinizione.py +++ b/channels/streamingaltadefinizione.py @@ -7,26 +7,22 @@ from core import support, httptools from core.item import Item from platformcode import config -# __channel__ = "streamingaltadefinizione" -# host = config.get_channel_url(__channel__) -# host = headers = '' -host = 'https://www.popcornstream.fun' list_servers = ['verystream', 'openload', 'wstream'] list_quality = ['1080p', 'HD', 'DVDRIP', 'SD', 'CAM'] def findhost(): - pass - # global host, headers - # permUrl = httptools.downloadpage('https://www.popcornstream.info', follow_redirects=False).headers - # if 'google' in permUrl['location']: - # if host[:4] != 'http': - # host = 'https://'+permUrl['location'].replace('https://www.google.it/search?q=site:', '') - # else: - # host = permUrl['location'].replace('https://www.google.it/search?q=site:', '') - # else: - # host = permUrl['location'] - # headers = [['Referer', host]] + permUrl = httptools.downloadpage('https://www.popcornstream.info', follow_redirects=False).headers + if 'google' in permUrl['location']: + host = permUrl['location'].replace('https://www.google.it/search?q=site:', '') + if host[:4] != 'http': + host = 'https://'+permUrl['location'].replace('https://www.google.it/search?q=site:', '') + else: + host = permUrl['location'] + return host + +host = config.get_channel_url(findhost) +headers = [['Referer', host]] @support.menu def mainlist(item):