msgctxt "#30034"
msgid "ESN (set automatically, can be changed manually)"
msgstr "ESN (änderbar, wird auto. gesetzt)"
+
+msgctxt "#30035"
+msgid "Inputstream Addon Settings..."
+msgstr "Inputstream Addon Settings..."
import urllib
import urllib2
import json
+from xbmcaddon import Addon
from urlparse import parse_qsl
from utils import noop, log
"""
params = self.parse_paramters(paramstring=paramstring)
+ # open foreign settings dialog
+ if 'mode' in params.keys() and params['mode'] == 'openSettings':
+ return self.open_settings(params['url'])
+
# log out the user
if 'action' in params.keys() and params['action'] == 'logout':
return self.call_netflix_service({'method': 'logout'})
data = urllib2.urlopen(full_url).read()
parsed_json = json.loads(data)
return parsed_json.get('result', None)
+
+ def open_settings(self, url):
+ """Opens a foreign settings dialog"""
+ is_addon = self.kodi_helper.get_inputstream_addon()
+ url = is_addon if url == 'is' else url
+ return Addon(url).openSettings()
<setting id="email" type="text" label="30005" default=""/>
<setting id="password" type="text" option="hidden" label="30004" default=""/>
<setting id="logout" type="action" label="30017" action="RunPlugin(plugin://plugin.video.netflix/?action=logout)" option="close"/>
+ <setting id="is_settings" type="action" label="30035" action="RunPlugin(plugin://plugin.video.netflix/?mode=openSettings&url=is)" option="close"/>
</category>
<category label="30025">
<setting id="enablelibraryfolder" type="bool" label="30026" default="false"/>