From 4f4d4bc54f0f883475cdd7442a5864eb2e2b1a99 Mon Sep 17 00:00:00 2001 From: marco <10120390+mac12m99@users.noreply.github.com> Date: Thu, 28 Apr 2022 20:39:30 +0200 Subject: [PATCH] Revert "Fix Redirect Dominio" This reverts commit 9e3f74f4537bfbf20991a1acf0b2852fdc475e80. --- platformcode/config.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/platformcode/config.py b/platformcode/config.py index 1fdf6c8f..f0a145eb 100644 --- a/platformcode/config.py +++ b/platformcode/config.py @@ -110,7 +110,7 @@ def get_videolibrary_support(): def get_channel_url(findhostMethod=None, name=None, forceFindhost=False): - from core import jsontools, httptools + from core import jsontools import inspect LOCAL_FILE = os.path.join(get_runtime_path(), "channels.json") @@ -129,8 +129,7 @@ def get_channel_url(findhostMethod=None, name=None, forceFindhost=False): jsontools.update_node(url, name, 'url') return url else: - url = httptools.downloadpage(channels_data['direct'][name], follow_redirects=True, only_headers=True).url - return url + return channels_data['direct'][name] def get_system_platform():