summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert McNamara <rmcnamara@mythtv.org>2010-12-16 17:00:47 (GMT)
committer Robert McNamara <rmcnamara@mythtv.org>2010-12-16 17:00:47 (GMT)
commit3fbe9485470580e3af883e6dc05da0f382e6b158 (patch)
tree2b7acaecf885df4103d5627f727974d4ccc94473
parentfc8e5eeaee31feaac24cbffaf5a94f33302a3b04 (diff)
MythVideo: Update Jamu to deal with unicode overrides.
Patch from Kenni.
-rwxr-xr-xmythplugins/mythvideo/mythvideo/scripts/jamu.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/mythplugins/mythvideo/mythvideo/scripts/jamu.py b/mythplugins/mythvideo/mythvideo/scripts/jamu.py
index a1ec2df..eeeeef0 100755
--- a/mythplugins/mythvideo/mythvideo/scripts/jamu.py
+++ b/mythplugins/mythvideo/mythvideo/scripts/jamu.py
@@ -47,7 +47,7 @@ Users of this script are encouraged to populate both themoviedb.com and thetvdb.
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 @@ __version__=u"v0.7.8"
# 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 @@ class Configuration(object):
)
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:]