Ticket #9637: unicode_fix.patch

File unicode_fix.patch, 1.7 KB (added by Kenni Lund [kenni a kelu dot dk], 9 years ago)
  • jamu.

    old new  
    4747fan art and banners and meta data. The richer the source the more valuable the script.
    4848'''
    4949
    50 __version__=u"v0.7.7"
     50__version__=u"v0.7.8"
    5151 # 0.1.0 Initial development
    5252 # 0.2.0 Inital beta release
    5353 # 0.3.0 Add mythvideo metadata updating including movie graphics through
     
    308308 # 0.7.7 Pull hostname from python bindings instead of socket libraries
    309309 #       Added support of unicode characters within a jamu.conf file
    310310 #       Replace 'xml' module version check with generic Python version, to correct failure in Python 2.7
     311 # 0.7.8 Fixed a bug which caused jamu to crash due to an extra unicode conversion introduced in 0.7.7.
     312 #       See also #9637.
    311313
    312314
    313315usage_txt=u'''
     
    12791281            if section == 'regex':
    12801282                # Change variables per user config file
    12811283                for option in cfg.options(section):
    1282                     self.config['name_parse'].append(re.compile(unicode(cfg.get(section, option), 'utf8'), re.UNICODE))
     1284                    self.config['name_parse'].append(re.compile(cfg.get(section, option), re.UNICODE))
    12831285                continue
    12841286            if section == 'ignore-directory':
    12851287                # Video directories to be excluded from Jamu processing
    12861288                for option in cfg.options(section):
    1287                     self.config['ignore-directory'].append(unicode(cfg.get(section, option), 'utf8'))
     1289                    self.config['ignore-directory'].append(cfg.get(section, option))
    12881290                continue
    12891291            if section =='series_name_override':
    12901292                overrides = {}