Commits

A2K  committed 61e0a68

Saving russian file names fix

  • Participants
  • Parent commits 49c1e52

Comments (0)

Files changed (2)

                     if talb>-1:
                         begin = talb + 11
                         end = talb + 10 + ord(self.data[talb+7:talb+8])
-                        album = self.data[begin:end].replace('\x00','')
+                        album = unicode(self.data[begin:end].replace('\x00',''))
                     else:
                         log.debug('Album name tag not present in ID3v2')
                 tdrc = self.data.find('TDRC')
                     begin = tdrc + 11
                     end = tdrc + 10 + ord(self.data[tdrc+7:tdrc+8])
                     try:
-                        year = self.data[begin : end].replace('\x00','')
+                        year = int(self.data[begin : end].replace('\x00',''))
                     except:
                         year = 0
                 elif tyer>-1:
                     begin = tyer + 11
                     end = tyer + 10 + ord(self.data[tyer+7:tyer+8])
                     try:
-                        year = self.data[begin : end].replace('\x00','')
+                        year = int(self.data[begin : end].replace('\x00',''))
                     except:
                         year = 0
                 else:
                 if not talbum:
                     log.debug('Album name tag not present in ID3v1')
                 else:
-                    album = talbum
+                    album = unicode(talbum)
                 try:
                     tyear = int(self.data[-35:-31].replace('\x00',''))
                 except:

File guicomponents/searchwidget.py

         return False
     def lessThan(self, left, right):
         src = self.source_model
-
-            #return QtGui.QSortFilterProxyModel.lessThan(self, left, right)
         ldata = unicode(src.data(left, QtCore.Qt.DisplayRole).toString())
         rdata = unicode(src.data(right, QtCore.Qt.DisplayRole).toString())
         if left.column() != 4 and right.column() != 4: