From 511f95298d1de616685190c7de46edd13a8bcd8e Mon Sep 17 00:00:00 2001 From: Timmy89 <53865707+xXTimmy89Xx@users.noreply.github.com> Date: Tue, 20 Feb 2024 16:26:05 +0100 Subject: [PATCH] FIx correzioni per kodi su raspberry pi --- channels/streamingcommunity.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/channels/streamingcommunity.py b/channels/streamingcommunity.py index 80dd60b5..09d14ab0 100644 --- a/channels/streamingcommunity.py +++ b/channels/streamingcommunity.py @@ -13,8 +13,10 @@ else: import urlparse as urllib_parse from core import support, channeltools, httptools, jsontools from platformcode import logger, config -if PY3: from concurrent import futures -else: from concurrent_py2 import futures +if sys.version_info[0] >= 3: + from concurrent import futures +else: + from concurrent_py2 import futures # def findhost(url): # return 'https://' + support.match(url, patron='var domain\s*=\s*"([^"]+)').match