<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<addon id="plugin.video.netflix" name="Netflix" version="0.11.15" provider-name="libdev + jojo + asciidisco">
+<addon id="plugin.video.netflix" name="Netflix" version="0.11.16" provider-name="libdev + jojo + asciidisco">
<requires>
<import addon="xbmc.python" version="2.24.0"/>
<import addon="script.module.beautifulsoup4" version="4.3.2"/>
<license>MIT</license>
<forum>http://www.kodinerds.net/index.php/Thread/55607-Inputstream-Agile-Betatest-Netflix/</forum>
<source>https://github.com/asciidisco/plugin.video.netflix</source>
- <news>v0.11.15 (2017-07-19)
- - Fix issue with Slovak, Polich & Swedish language filed
+ <news>v0.11.16 (2017-07-19)
+ - Fix error on *nix devices
+
+ v0.11.15 (2017-07-19)
+ - Fix issue with Slovak, Polish & Swedish language files
- Add calculation of ESN for Android
- Logout in settings now also deletes Manifest data
- Add hidden ESN field in config & delete Manifest data if it doesn't fit the public one
# Kodi Media Center language file
# Addon Name: Netflix
# Addon id: plugin.video.netflix
-# Addon version: 0.11.15
+# Addon version: 0.11.16
# Addon Provider: libdev + jojo + asciidisco
msgid ""
msgstr ""
# Kodi Media Center language file
# Addon Name: Netflix
# Addon id: plugin.video.netflix
-# Addon version: 0.11.15
+# Addon version: 0.11.16
# Addon Provider: libdev + jojo + asciidisco
msgid ""
msgstr ""
# Kodi Media Center language file
# Addon Name: Netflix
# Addon id: plugin.video.netflix
-# Addon version: 0.11.15
+# Addon version: 0.11.16
# Addon Provider: libdev + jojo + asciidisco
msgid ""
msgstr ""
# Kodi Media Center language file
# Addon Name: Netflix
# Addon id: plugin.video.netflix
-# Addon version: 0.11.15
+# Addon version: 0.11.16
# Addon Provider: libdev + jojo + asciidisco
msgid ""
msgstr ""
# Kodi Media Center language file
# Addon Name: Netflix
# Addon id: plugin.video.netflix
-# Addon version: 0.11.15
+# Addon version: 0.11.16
# Addon Provider: libdev + jojo + asciidisco
msgid ""
msgstr ""
# Kodi Media Center language file
# Addon Name: Netflix
# Addon id: plugin.video.netflix
-# Addon version: 0.11.15
+# Addon version: 0.11.16
# Addon Provider: libdev + jojo + asciidisco
msgid ""
msgstr ""
# Kodi Media Center language file
# Addon Name: Netflix
# Addon id: plugin.video.netflix
-# Addon version: 0.11.15
+# Addon version: 0.11.16
# Addon Provider: libdev + jojo + asciidisco
msgid ""
msgstr ""
# Kodi Media Center language file
# Addon Name: Netflix
# Addon id: plugin.video.netflix
-# Addon version: 0.11.15
+# Addon version: 0.11.16
# Addon Provider: libdev + jojo + asciidisco
msgid ""
msgstr ""
"""
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
-
+ stored_esn = self.get_esn()
if not stored_esn and esn:
self.set_setting('esn', esn)
self.delete_manifest_data()
"""
# we generate an esn from device strings for android
import subprocess
- manufacturer = subprocess.check_output(["/system/bin/getprop", "ro.product.manufacturer"])
-
- if manufacturer :
- esn = 'NFANDROID1-PRV-'
- input = subprocess.check_output(["/system/bin/getprop", "ro.nrdp.modelgroup"])
- if not input:
- esn = esn + 'T-L3-'
- else:
- esn = esn + input.strip(' \t\n\r') + '-'
- esn = esn + '{:5}'.format(manufacturer.strip(' \t\n\r').upper())
- input = subprocess.check_output(["/system/bin/getprop" ,"ro.product.model"])
- esn = esn + input.strip(' \t\n\r').replace(' ', '=').upper()
- self.log(msg='Android generated ESN:' + esn)
- return esn
+ try:
+ manufacturer = subprocess.check_output(["/system/bin/getprop", "ro.product.manufacturer"])
+ if manufacturer:
+ esn = 'NFANDROID1-PRV-'
+ input = subprocess.check_output(["/system/bin/getprop", "ro.nrdp.modelgroup"])
+ if not input:
+ esn = esn + 'T-L3-'
+ else:
+ esn = esn + input.strip(' \t\n\r') + '-'
+ esn = esn + '{:5}'.format(manufacturer.strip(' \t\n\r').upper())
+ input = subprocess.check_output(["/system/bin/getprop" ,"ro.product.model"])
+ esn = esn + input.strip(' \t\n\r').replace(' ', '=').upper()
+ self.log(msg='Android generated ESN:' + esn)
+ return esn
+ except OSError as e:
+ self.log(msg='Ignoring exception for non Android devices')
# values are accessible via dict (sloppy parsing successfull)
if type(netflix_page_data) == dict: