From a86b6615d6944577cde42c3abc521122b5ce5f25 Mon Sep 17 00:00:00 2001 From: marco Date: Wed, 15 Apr 2020 15:16:08 +0200 Subject: [PATCH] cb01 sotto cloudflare --- channels.json | 1 + channels/cineblog01.py | 16 ++++++++-------- core/httptools.py | 2 +- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/channels.json b/channels.json index 4aa5cab0..7b08a023 100644 --- a/channels.json +++ b/channels.json @@ -12,6 +12,7 @@ "animeworld": "https://www.animeworld.tv", "casacinema": "https://www.casacinema.me", "casacinemaInfo": "https://casacinema.life", + "cineblog01": "https://cb01.expert", "cb01anime": "https://www.cineblog01.network", "cinemalibero": "https://www.cinemalibero.plus", "cinetecadibologna": "http://cinestore.cinetecadibologna.it", diff --git a/channels/cineblog01.py b/channels/cineblog01.py index 33f542a5..0af05ee8 100644 --- a/channels/cineblog01.py +++ b/channels/cineblog01.py @@ -11,16 +11,16 @@ from lib import unshortenit from platformcode import logger, config -def findhost(): - permUrl = httptools.downloadpage('https://cb01-nuovo-indirizzo.info/', follow_redirects=False, only_headers=True).headers - if 'google' in permUrl['location']: - host = permUrl['location'].replace('https://www.google.it/search?q=site:', '') - else: - host = permUrl['location'] - return host +# def findhost(): +# permUrl = httptools.downloadpage('https://cb01-nuovo-indirizzo.info/', follow_redirects=False, only_headers=True).headers +# if 'google' in permUrl['location']: +# host = permUrl['location'].replace('https://www.google.it/search?q=site:', '') +# else: +# host = permUrl['location'] +# return host -host = config.get_channel_url(findhost) +host = config.get_channel_url() headers = [['Referer', host]] list_servers = ['mixdrop', 'akstream', 'wstream', 'backin'] diff --git a/core/httptools.py b/core/httptools.py index 01bc33f7..c5f21b3d 100755 --- a/core/httptools.py +++ b/core/httptools.py @@ -42,7 +42,7 @@ if HTTPTOOLS_DEFAULT_DOWNLOAD_TIMEOUT == 0: HTTPTOOLS_DEFAULT_DOWNLOAD_TIMEOUT = HTTPTOOLS_DEFAULT_RANDOM_HEADERS = False domainCF = list() -channelsCF = ['guardaserieclick', 'casacinema', 'dreamsub', 'ilgeniodellostreaming', 'piratestreaming', 'altadefinizioneclick', 'altadefinizione01_link'] +channelsCF = ['guardaserieclick', 'casacinema', 'dreamsub', 'ilgeniodellostreaming', 'piratestreaming', 'altadefinizioneclick', 'altadefinizione01_link', 'cineblog01'] otherCF = ['altadefinizione-nuovo.link', 'wstream.video', 'akvideo.stream', 'backin.net', 'vcrypt.net'] for ch in channelsCF: domainCF.append(urlparse.urlparse(config.get_channel_url(name=ch)).hostname)