Skip to content

Commit

Permalink
Support for Unicode paths in Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
WallyCZ authored and emilsvennesson committed Feb 7, 2019
1 parent 530f1c8 commit 00de925
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/inputstreamhelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import xbmcvfs

ADDON = xbmcaddon.Addon('script.module.inputstreamhelper')
ADDON_PROFILE = xbmc.translatePath(ADDON.getAddonInfo('profile'))
ADDON_PROFILE = xbmc.translatePath(ADDON.getAddonInfo('profile')).decode('utf-8')
LANGUAGE = ADDON.getLocalizedString


Expand Down Expand Up @@ -88,7 +88,7 @@ def _addon_cdm_path(cls):
def _ia_cdm_path(cls):
"""Return the specified CDM path for inputstream.adaptive."""
addon = xbmcaddon.Addon('inputstream.adaptive')
cdm_path = xbmc.translatePath(addon.getSetting('DECRYPTERPATH'))
cdm_path = xbmc.translatePath(addon.getSetting('DECRYPTERPATH')).decode('utf-8')
if not xbmcvfs.exists(cdm_path):
xbmcvfs.mkdir(cdm_path)

Expand Down Expand Up @@ -274,7 +274,7 @@ def _has_widevine(self):
return True
else:
if self._widevine_path():
self._log('Found Widevine binary at {0}'.format(self._widevine_path()))
self._log('Found Widevine binary at {0}'.format(self._widevine_path().encode('utf-8')))
return True
else:
self._log('Widevine is not installed.')
Expand Down

0 comments on commit 00de925

Please sign in to comment.