From a06a98d6b48bf990d1b23e085426e192cb50c52f Mon Sep 17 00:00:00 2001 From: Alhaziel Date: Wed, 9 Oct 2019 18:25:46 +0200 Subject: [PATCH] Fix CB01 --- channels/cineblog01.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/channels/cineblog01.py b/channels/cineblog01.py index 78e858a3..20699aee 100644 --- a/channels/cineblog01.py +++ b/channels/cineblog01.py @@ -18,7 +18,10 @@ headers = "" def findhost(): global host, headers permUrl = httptools.downloadpage('https://www.cb01.uno/', follow_redirects=False).headers - host = 'https://www.'+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'].replace('https://www.google.it/search?q=site:', '') headers = [['Referer', host]] list_servers = ['verystream', 'openload', 'streamango', 'wstream']