Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix a bug which caused jamu to crash due to multiple unicode conversi…

…ons.

Refs #9637.
  • Loading branch information...
commit 454f85387c51cd71bd24f350083a1f90ad515be0 1 parent c2b9e3d
@kenni kenni authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 mythplugins/mythvideo/mythvideo/scripts/jamu.py
View
8 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.9"
+__version__=u"v0.8.0"
# 0.1.0 Initial development
# 0.2.0 Inital beta release
# 0.3.0 Add mythvideo metadata updating including movie graphics through
@@ -309,6 +309,8 @@
# 0.7.8 Replace uses of MythVideo.getVideo()
# 0.7.9 Deal with jamu.conf entries that have unicode characters
# Replace 'xml' module version check with generic Python version, to correct failure in Python 2.7
+ # 0.8.0 Fixed a bug which caused jamu to crash due to an extra unicode conversion introduced in 0.7.9.
+ # See also #9637.
usage_txt=u'''
@@ -1280,12 +1282,12 @@ def setUseroptions(self, useroptions):
if section == 'regex':
# Change variables per user config file
for option in cfg.options(section):
- self.config['name_parse'].append(re.compile(unicode(cfg.get(section, option), 'utf8'), re.UNICODE))
+ self.config['name_parse'].append(re.compile(cfg.get(section, option), re.UNICODE))
continue
if section == 'ignore-directory':
# Video directories to be excluded from Jamu processing
for option in cfg.options(section):
- self.config['ignore-directory'].append(unicode(cfg.get(section, option), 'utf8'))
+ self.config['ignore-directory'].append(cfg.get(section, option))
continue
if section =='series_name_override':
overrides = {}

0 comments on commit 454f853

Please sign in to comment.
Something went wrong with that request. Please try again.