'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)
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']
}
}
import BaseHTTPServer
import base64
from urlparse import urlparse, parse_qs
-import xbmcaddon
from MSL import MSL
from KodiHelper import KodiHelper
base_url=None
)
-account = kodi_helper.get_credentials()
-msl = MSL(account['email'], account['password'], kodi_helper)
+msl = MSL(kodi_helper)
class MSLHttpRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
self.send_header('Content-type', 'application/xml')
self.end_headers()
self.wfile.write(data)
+
+ def log_message(self, format, *args):
+ """
+ Disable the BaseHTTPServer Log
+ :param format:
+ :param args:
+ :return: None
+ """
+ return