From 7bee9cd72f52274950b055259962f339888bc298 Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Wed, 22 Apr 2020 23:14:25 +0200 Subject: [PATCH 1/2] Fix Popcornstream --- channels.json | 1 + channels/streamingaltadefinizione.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/channels.json b/channels.json index 79b829de..2a415835 100644 --- a/channels.json +++ b/channels.json @@ -40,6 +40,7 @@ "serietvsubita": "http://serietvsubita.xyz", "serietvu": "https://www.serietvu.link", "streamtime": "https://t.me/s/StreamTime", + "streamingaltadefinizione":"https://www.popcornstream.website/", "tantifilm": "https://www.tantifilm.vip", "toonitalia": "https://toonitalia.org", "vedohd": "https://vedohd.uno", diff --git a/channels/streamingaltadefinizione.py b/channels/streamingaltadefinizione.py index 959b4e11..d7975d1b 100644 --- a/channels/streamingaltadefinizione.py +++ b/channels/streamingaltadefinizione.py @@ -21,7 +21,7 @@ def findhost(): host = permUrl['location'] return host -host = config.get_channel_url(findhost) +host = config.get_channel_url() headers = [['Referer', host]] @support.menu From 4c91972105460c5c8fb200a691aae028d669a892 Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Thu, 23 Apr 2020 14:58:34 +0200 Subject: [PATCH 2/2] Fix cb01 --- channels/cineblog01.py | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/channels/cineblog01.py b/channels/cineblog01.py index 9b7dddc1..ccd73513 100644 --- a/channels/cineblog01.py +++ b/channels/cineblog01.py @@ -11,16 +11,20 @@ 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(): + 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'