import xbmcplugin import feedparser from BeautifulSoup import BeautifulSoup, BeautifulStoneSoup from t0mm0.common.net import Net net = Net() import cookielib import settings import re __selfpath__ = xbmcaddon.Addon(id='plugin.video.highspots_tv').getAddonInfo('path') lastNum = re.compile(r'(?:[^\d]*(\d+)[^\d]*)+') addon = xbmcaddon.Addon() _pluginId = 'plugin.video.highspots_tv' pluginhandle = int(sys.argv[1]) args = urlparse.parse_qs(sys.argv[2][1:]) cookie_jar = settings.cookie_jar() USER = settings.username() PW = settings.user_password() def parameters_string_to_dict(parameters): paramDict = {} if parameters: paramPairs = parameters[1:].split("&") for paramsPair in paramPairs: paramSplits = paramsPair.split('=') if (len(paramSplits)) == 2: paramDict[paramSplits[0]] = paramSplits[1] return paramDict
import json from t0mm0.common.net import Net net = Net() import cookielib local=xbmcaddon.Addon(id='plugin.video.smoothschedule') SMOOTHSTREAMSADDON = xbmcaddon.Addon(id='plugin.video.mystreamstv.beta') SS_quality=SMOOTHSTREAMSADDON.getSetting('high_def') SS_server_type=SMOOTHSTREAMSADDON.getSetting('server_type') SS_server=SMOOTHSTREAMSADDON.getSetting('server') SS_service=SMOOTHSTREAMSADDON.getSetting('service') SS_Suname=SMOOTHSTREAMSADDON.getSetting('SUserN') SS_Spwd=SMOOTHSTREAMSADDON.getSetting('SPassW') ENABLE_SUBS = settings.enable_subscriptions() fanart = xbmc.translatePath(os.path.join('special://home/addons/plugin.video.smoothschedule', 'fanart.jpg')) art = xbmc.translatePath(os.path.join('special://home/addons/plugin.video.smoothschedule/art', '')) cookie_jar = settings.cookie_jar() USER = settings.username() PW = settings.user_password() SS_library=xbmc.translatePath(os.path.join('special://home/addons/plugin.video.mystreamstv.beta', 'default.py')) xml_path = os.path.join(xbmc.translatePath('special://profile/addon_data/plugin.video.smoothschedule'), 'smooth_epg.xml') xml_url='http://cdn.smoothstreams.tv/schedule/feed.xml' m3u_path = os.path.join(xbmc.translatePath('special://profile/addon_data/plugin.video.smoothschedule'), 'smooth.m3u') logo_archive = xbmc.translatePath(os.path.join('special://home/addons/plugin.video.smoothschedule/art', 'pvrlogos.zip')) logo_path = os.path.join(xbmc.translatePath('special://profile/addon_data/plugin.video.smoothschedule'), '') TIMEZONE = settings.timezone() i = datetime.datetime.now() t0 = i.strftime('%Y-%m-%d') t0time = i.strftime('%H:%M') t1 = (i + timedelta(days=1)).strftime('%Y-%m-%d')