diff --git a/channels.json b/channels.json index 5792ca40..8258dba7 100644 --- a/channels.json +++ b/channels.json @@ -11,8 +11,7 @@ "animeunity": "https://www.animeunity.it", "casacinema": "https://www.casacinema.biz", "casacinemaInfo": "https://casacinema.kim", - "cb01anime": "https://www.cineblog01.ink", - "cinemalibero": "https://www.cinemalibero.live", + "cb01anime": "https://www.cineblog01.ink", "cinetecadibologna": "http://cinestore.cinetecadibologna.it", "documentaristreamingda": "https://documentari-streaming-da.com", "dreamsub": "https://dreamsub.stream", diff --git a/channels/cinemalibero.py b/channels/cinemalibero.py index 01859ef6..a237bab1 100644 --- a/channels/cinemalibero.py +++ b/channels/cinemalibero.py @@ -12,7 +12,11 @@ from platformcode import config list_servers = ['akstream', 'wstream', 'backin', 'clipwatching', 'cloudvideo', 'verystream', 'onlystream', 'mixdrop'] list_quality = ['default'] -host = config.get_channel_url() +def findhost(): + permUrl = httptools.downloadpage('https://www.cinemalibero.online/', follow_redirects=False).headers + return 'https://www.' + permUrl['location'].replace('https://www.google.com/search?q=site:', '') + +host = config.get_channel_url(findhost) headers = [['Referer', host]] @support.menu diff --git a/specials/resolverdns.py b/specials/resolverdns.py index 3f99eda2..7e2cc232 100644 --- a/specials/resolverdns.py +++ b/specials/resolverdns.py @@ -40,7 +40,7 @@ class CipherSuiteAdapter(host_header_ssl.HostHeaderSSLAdapter): def __init__(self, domain, CF=False, *args, **kwargs): self.conn = sql.connect(db) self.cur = self.conn.cursor() - self.ssl_context = CustomContext(ssl.PROTOCOL_TLS, domain) + self.ssl_context = CustomContext(ssl.PROTOCOL_SSLv23, domain) self.CF = CF # if cloudscrape is in action self.cipherSuite = kwargs.pop('cipherSuite', ssl._DEFAULT_CIPHERS)