import sys import urlparse import resources.lib.vod as vod import resources.lib.clips as clips import resources.lib.liveTv as liveTv from skyticket import SkyTicket import navigation as nav import watchlist plugin_base_url = sys.argv[0] params = dict(urlparse.parse_qsl(sys.argv[2][1:])) addon_handle = int(sys.argv[1]) skyticket = SkyTicket(addon_handle) vod.skyticket = skyticket nav.skyticket = skyticket clips.skyticket = skyticket liveTv.skyticket = skyticket watchlist.skyticket = skyticket # Router for all plugin actions if 'action' in params: print params if params['action'] == 'playVod': if 'infolabels' in params: vod.playAsset(params['vod_id'],
except: import storageserverdummy as StorageServer addon = xbmcaddon.Addon() # Doc for Caching Function: http://kodi.wiki/index.php?title=Add-on:Common_plugin_cache assetDetailsCache = StorageServer.StorageServer( addon.getAddonInfo('name') + '.assetdetails', 24 * 30) TMDBCache = StorageServer.StorageServer( addon.getAddonInfo('name') + '.TMDBdata', 24 * 30) extMediaInfos = addon.getSetting('enable_extended_mediainfos') addon_handle = int(sys.argv[1]) icon_file = xbmc.translatePath(addon.getAddonInfo('path') + '/icon.png').decode('utf-8') skyticket = SkyTicket() htmlparser = HTMLParser() # Blacklist: diese nav_ids nicht anzeigen # Sport: Datencenter, NewsSection, Aktuell, Snap nav_blacklist = [34, 32, 27, 15] # Force: anzeige dieser nav_ids erzwingen # Sport: Wiederholungen nav_force = [35, 36, 37, 161] # Jugendschutz js_showall = addon.getSetting('js_showall') def getNav(): feed = urllib2.urlopen(
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import urlparse import resources.lib.vod as vod import resources.lib.clips as clips import resources.lib.liveTv as liveTv from skyticket import SkyTicket import navigation as nav import watchlist skyticket = SkyTicket() addon_handle = int(sys.argv[1]) plugin_base_url = sys.argv[0] params = dict(urlparse.parse_qsl(sys.argv[2][1:])) # Router for all plugin actions if 'action' in params: print params if params['action'] == 'playVod': if 'infolabels' in params: vod.playAsset(params['vod_id'], infolabels=params['infolabels'], parental_rating=int(params['parental_rating'])) else: vod.playAsset(params['vod_id'], parental_rating=int(params['parental_rating']))