From 4f1e8eaee4cdc14b71970ed753ef3527e9fd3897 Mon Sep 17 00:00:00 2001 From: Alhaziel Date: Wed, 9 Oct 2019 10:17:30 +0200 Subject: [PATCH] Fix CB01 --- channels/cineblog01.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/channels/cineblog01.py b/channels/cineblog01.py index 44fa2e45..809003ef 100644 --- a/channels/cineblog01.py +++ b/channels/cineblog01.py @@ -20,7 +20,9 @@ def findhost(): global host, headers permUrl = httptools.downloadpage('https://www.cb01.uno/', follow_redirects=False).headers support.log('HOST= ',permUrl) - host = 'https://'+permUrl['location'].replace('https://www.google.it/search?q=site:', '') + 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:', '') support.log('HOST= ',host) headers = [['Referer', host]]