MPD support broken for other languages

Bug #1256186 reported by cesasol
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
CoverGloobus
New
Undecided
Unassigned

Bug Description

When starting coverglloobus with MPD it crashes showing up the following message.

mpd:INFO: Calling MPD connect('localhost', 6600, timeout=None)
Traceback (most recent call last):
  File "/usr/share/covergloobus/core/covergloobus.py", line 94, in init
    self.init_player()
  File "/usr/share/covergloobus/core/covergloobus.py", line 128, in init_player
    self.check_song()
  File "/usr/share/covergloobus/core/covergloobus.py", line 282, in check_song
    self.update(TRACK, track)
  File "/usr/share/covergloobus/core/covergloobus.py", line 365, in update
    callback(*args)
  File "/usr/share/covergloobus/core/observer.py", line 11, in __call__
    self.callback(*args)
  File "/usr/share/covergloobus/core/covergloobus.py", line 330, in update_track
    track.cover = self.covers.search(track)
  File "/usr/share/covergloobus/core/coversearch.py", line 74, in search
    cover = engine.get_cover(track)
  File "/usr/share/covergloobus/covers/Location.py", line 59, in get_cover
    for name in os.listdir(path):
OSError: [Errno 2] No existe el fichero o el directorio: '/home/cesasol/Music/2010 - ... And They Have Escaped'

The last line reveals that is a language issue and the current workarround is create a symlink form /home/cesasol/Música/ to /home/cesasol/Music

I think the best solution is replace the line $HOME/Music to a xdg path

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.