X-Git-Url: http://git.code-monkey.de/?p=plugin.video.netflix.git;a=blobdiff_plain;f=resources%2Flib%2FKodiHelper.py;h=27b77f973ba6ffb934638d5f04685df1713c2fd1;hp=44d992bfae5ad67b678a22339b833748e907a233;hb=3305a89c90f475629a06f4ab96fa6fdf9098dd2f;hpb=c1cb01ec0027c7c5a1c67934df407b4820a5686a diff --git a/resources/lib/KodiHelper.py b/resources/lib/KodiHelper.py index 44d992b..27b77f9 100644 --- a/resources/lib/KodiHelper.py +++ b/resources/lib/KodiHelper.py @@ -18,9 +18,6 @@ except: class KodiHelper: """Consumes all the configuration data from Kodi as well as turns data into lists of folders and videos""" - msl_service_server_url = 'http://localhost:%PORT%' - """str: MSL service url""" - def __init__ (self, plugin_handle, base_url): """Fetches all needed info from Kodi & configures the baseline of the plugin @@ -42,6 +39,7 @@ class KodiHelper: self.cookie_path = self.base_data_path + 'COOKIE' self.data_path = self.base_data_path + 'DATA' self.config_path = os.path.join(self.base_data_path, 'config') + self.msl_data_path = xbmc.translatePath('special://profile/addon_data/service.msl').decode('utf-8') + '/' self.verb_log = self.addon.getSetting('logging') == 'true' self.default_fanart = self.addon.getAddonInfo('fanart') self.win = xbmcgui.Window(xbmcgui.getCurrentWindowId()) @@ -647,7 +645,7 @@ class KodiHelper: return False # inputstream addon properties - msl_service_url = self.msl_service_server_url.replace('%PORT%', str(self.addon.getSetting('msl_service_port'))) + msl_service_url = 'http://localhost:' + str(self.addon.getSetting('msl_service_port')) play_item = xbmcgui.ListItem(path=msl_service_url + '/manifest?id=' + video_id) play_item.setProperty(inputstream_addon + '.license_type', 'com.widevine.alpha') play_item.setProperty(inputstream_addon + '.manifest_type', 'mpd')