Ticket #9637: unicode_fix.patch
File unicode_fix.patch, 1.7 KB (added by , 13 years ago) |
---|
-
jamu.
old new 47 47 fan art and banners and meta data. The richer the source the more valuable the script. 48 48 ''' 49 49 50 __version__=u"v0.7. 7"50 __version__=u"v0.7.8" 51 51 # 0.1.0 Initial development 52 52 # 0.2.0 Inital beta release 53 53 # 0.3.0 Add mythvideo metadata updating including movie graphics through … … 308 308 # 0.7.7 Pull hostname from python bindings instead of socket libraries 309 309 # Added support of unicode characters within a jamu.conf file 310 310 # 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. 311 313 312 314 313 315 usage_txt=u''' … … 1279 1281 if section == 'regex': 1280 1282 # Change variables per user config file 1281 1283 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)) 1283 1285 continue 1284 1286 if section == 'ignore-directory': 1285 1287 # Video directories to be excluded from Jamu processing 1286 1288 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)) 1288 1290 continue 1289 1291 if section =='series_name_override': 1290 1292 overrides = {}