Skip to content

Commit

Permalink
Fixed wrong path in linux systems
Browse files Browse the repository at this point in the history
is the cause error in addon/service starts:
Error Type: <type 'exceptions.LookupError'>
Error Contents: no codec search functions registered: can't find
encoding
Traceback (most recent call last):
File "/home/osmc/.kodi/addons/plugin.video.netflix/service.py", line 18,
in <module>
g.init_globals(sys.argv)
File
"/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/globals.py",
line 217, in init_globals
self.PATH = unquote(self.URL[2][1:]).decode('utf-8')
LookupError: no codec search functions registered: can't find encoding
  • Loading branch information
CastagnaIT committed Aug 25, 2019
1 parent 387ef26 commit 6ba87ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions resources/lib/globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ def init_globals(self, argv, skip_database_initialize=False):
os.path.join(self.ADDON_DATA_PATH, 'modules', 'mysql-connector-python')
]
for path in module_paths:
path = xbmc.translatePath(path)
if path not in sys.path:
sys.path.insert(0, path)

Expand Down

0 comments on commit 6ba87ae

Please sign in to comment.