X-Git-Url: http://git.code-monkey.de/?p=plugin.video.netflix.git;a=blobdiff_plain;f=resources%2Flib%2FMSL.py;h=e2e7248f2da085dece0ff614d79f4358515f70c9;hp=7f813d470b33acda3ea7c102751a9f4af4c44cde;hb=d6c102c7e99ca8cb1871ee3ef951c35fcd824b84;hpb=7902bc84776143c675ce4cc7a251506d2d13e90c diff --git a/resources/lib/MSL.py b/resources/lib/MSL.py index 7f813d4..e2e7248 100644 --- a/resources/lib/MSL.py +++ b/resources/lib/MSL.py @@ -46,13 +46,11 @@ class MSL: 'license': 'http://www.netflix.com/api/msl/NFCDCH-LX/cadmium/license' } - def __init__(self, email, password, kodi_helper): + def __init__(self, kodi_helper): """ The Constructor checks for already existing crypto Keys. If they exist it will load the existing keys """ - self.email = email - self.password = password self.kodi_helper = kodi_helper try: os.mkdir(self.kodi_helper.msl_data_path) @@ -459,12 +457,13 @@ class MSL: if 'usertoken' in self.tokens: pass else: + account = self.kodi_helper.get_credentials() # Auth via email and password header_data['userauthdata'] = { 'scheme': 'EMAIL_PASSWORD', 'authdata': { - 'email': self.email, - 'password': self.password + 'email': account['email'], + 'password': account['password'] } }