Returns the esn from settings
"""
stored_esn = self.get_esn()
+ hidden_esn = self.get_addon().getSetting('hidden_esn')
+ if hidden_esn == '' and esn:
+ self.set_setting('esn', esn)
+ self.set_setting('hidden_esn', esn)
+ self.delete_manifest_data()
+ return esn
+
+ if hidden_esn != stored_esn:
+ self.set_setting('hidden_esn', stored_esn)
+ self.delete_manifest_data()
+ return stored_esn
+
if not stored_esn and esn:
self.set_setting('esn', esn)
self.delete_manifest_data()
"""
self.profiles = []
self.credentials = {'email': '', 'password': ''}
+ # delete esn data
+ self.kodi_helper.delete_manifest_data()
return self.netflix_session.logout()
def login (self, params):
<setting id="ssl_verification" type="bool" label="30024" default="true"/>
<setting id="enable_tracking" type="bool" label="30032" default="true"/>
<setting id="esn" type="text" label="30034" value="" default=""/>
+ <setting id="hidden_esn" visible="false" value="" />
<setting id="tracking_id" value="" visible="false"/>
<setting id="msl_service_port" value="8000" visible="false"/>
<setting id="netflix_service_port" value="8001" visible="false"/>