From fcb3bc3a5a598e1d026d2482c6baba9d0f0c7151 Mon Sep 17 00:00:00 2001 From: marco Date: Thu, 30 Apr 2020 15:51:41 +0200 Subject: [PATCH] fix cb01 --- channels/cineblog01.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/channels/cineblog01.py b/channels/cineblog01.py index 38ab963a..fdc50de4 100644 --- a/channels/cineblog01.py +++ b/channels/cineblog01.py @@ -12,15 +12,15 @@ from platformcode import logger, config def findhost(): - page = httptools.downloadpage('https://cb01-nuovo-indirizzo.info/', follow_redirects=False) - permUrl = page.headers - if 'location' in permUrl: - if 'google' in permUrl['location']: - host = permUrl['location'].replace('https://www.google.it/search?q=site:', '') - else: - host = permUrl['location'] - else: - host = support.match(page.data, patron=r'