# -*- coding: utf-8 -*- import sys PY3 = False if sys.version_info[0] >= 3: PY3 = True from six.moves import urllib import ast import xbmc from core import httptools, support, filetools from platformcode import logger, config vttsupport = False if int(xbmc.getInfoLabel('System.BuildVersion').split('.')[0]) < 20 else True def test_video_exists(page_url): global iframeParams global urlParams server_url = support.scrapertools.decodeHtmlentities(support.match(page_url, patron=['