Wednesday, November 21, 2012

RadioTray cp-1251 support in Ubuntu 12.04


  1. sudo gedit /usr/share/pyshared/radiotray/AudioPlayerGStreamer.py
  2. find self.eventManager.notify(EventManager.SONG_CHANGED, metadata)
  3. before it put:

if(metadata['title']):
  metadata['title'] = metadata['title'].encode('latin-1').decode('cp1251').encode('utf8')


No comments:

Post a Comment