From ca3e7ec273c8a029f1fd6fdb6ec23f0ed5ab1c90 Mon Sep 17 00:00:00 2001 From: ilmich Date: Thu, 23 May 2024 09:54:17 +0200 Subject: [PATCH] Fix SCWS --- servers/streamingcommunityws.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/servers/streamingcommunityws.py b/servers/streamingcommunityws.py index d78baa46..571245c4 100644 --- a/servers/streamingcommunityws.py +++ b/servers/streamingcommunityws.py @@ -3,8 +3,11 @@ import sys PY3 = False if sys.version_info[0] >= 3: PY3 = True -if PY3: import urllib.parse as urllib -else: import urllib +if PY3: + import urllib.parse as urllib +else: + import urllib + import ast import xbmc @@ -17,12 +20,14 @@ vttsupport = False if int(xbmc.getInfoLabel('System.BuildVersion').split('.')[0] def test_video_exists(page_url): global iframeParams + global urlParams server_url = support.scrapertools.decodeHtmlentities(support.match(page_url, patron=['