Skip to content

Commit

Permalink
decode utf-8 paths to internal encoding otherwise the addon fails to …
Browse files Browse the repository at this point in the history
…load on windows with non-ascii profile paths like G:\XBMC\íö. thx chadoe for this
  • Loading branch information
amet committed Feb 21, 2012
1 parent 67e62a2 commit 8e9630c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions script.xbmc.subtitles/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
2.9.33
- fix: BetaSeries service and series with ' in it
- fix: Itasa year bug fixed
- fix: decode utf-8 paths to internal encoding otherwise the addon fails to load on windows with non-ascii profile paths like G:\XBMC\íö. thx chadoe for this

2.9.32
- added: Chinese (Simple) localization , thanks taxigps
Expand Down
4 changes: 2 additions & 2 deletions script.xbmc.subtitles/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
__version__ = __addon__.getAddonInfo('version')
__language__ = __addon__.getLocalizedString

__profile__ = xbmc.translatePath( __addon__.getAddonInfo('profile') )
__resource__ = xbmc.translatePath( os.path.join( __cwd__, 'resources', 'lib' ) )
__profile__ = xbmc.translatePath( __addon__.getAddonInfo('profile') ).decode("utf-8")
__resource__ = xbmc.translatePath( os.path.join( __cwd__, 'resources', 'lib' ) ).decode("utf-8")

sys.path.append (__resource__)

Expand Down

0 comments on commit 8e9630c

Please sign in to comment.