Permalink
Browse files

MythVideo: Update Jamu to deal with unicode overrides.

Patch from Kenni.
  • Loading branch information...
1 parent fc8e5ee commit 3fbe9485470580e3af883e6dc05da0f382e6b158 Robert McNamara committed Dec 16, 2010
Showing with 3 additions and 2 deletions.
  1. +3 −2 mythplugins/mythvideo/mythvideo/scripts/jamu.py
@@ -47,7 +47,7 @@
fan art and banners and meta data. The richer the source the more valuable the script.
'''
-__version__=u"v0.7.8"
+__version__=u"v0.7.9"
# 0.1.0 Initial development
# 0.2.0 Inital beta release
# 0.3.0 Add mythvideo metadata updating including movie graphics through
@@ -307,6 +307,7 @@
# 0.7.6 Modifications to support MythTV python bindings changes
# 0.7.7 Pull hostname from python bindings instead of socket libraries
# 0.7.8 Replace uses of MythVideo.getVideo()
+ # 0.7.9 Deal with jamu.conf entries that have unicode characters
usage_txt=u'''
@@ -1247,7 +1248,7 @@ def setUseroptions(self, useroptions):
)
sys.exit(1)
cfg = ConfigParser.SafeConfigParser()
- cfg.read(useroptions)
+ cfg.readfp(codecs.open(useroptions, "r", "utf8"))
for section in cfg.sections():
if section[:5] == 'File ':
self.config['config_file'] = section[5:]

0 comments on commit 3fbe948

Please sign in to comment.