Ticket #47132: fix_unicode_omissions.diff
File fix_unicode_omissions.diff, 1.1 KB (added by RJVB (René Bertin), 10 years ago) |
---|
-
parsers.py
old new 478 478 itm = VideoItem(cat, it) 479 479 vids[it['ID']] = itm 480 480 481 logger.info( 'category {0} has {1} videos'.format(cat, len(vids)))481 logger.info(u'category {0} has {1} videos'.format(cat, len(vids))) 482 482 self.alw.videos[cat] = vids 483 483 self.loadingCategoryFinished.emit(CATEGORIES[self.lang][cat]) 484 484 -
ui_main.py
old new 708 708 709 709 def enable_button(self, btn): 710 710 for k in self.buttons.keys(): 711 if btn in self.buttons[k]:711 if unicode(btn) in unicode(self.buttons[k]): 712 712 k.setEnabled(True) 713 713 714 714 def set_page_button_style(self): … … 718 718 719 719 def set_toggled_button(self, cat): 720 720 for k in self.buttons.keys(): 721 if cat in self.buttons[k]:721 if unicode(cat) in unicode(self.buttons[k]): 722 722 k.set_current(True) 723 723 else: 724 724 k.set_current(False)