decibel-audio-player-remote fails to pl-add non-ascii filenames

Bug #1316317 reported by kevinf
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Decibel Audio Player
New
Undecided
Unassigned

Bug Description

I tried to populate my playlist via the command line (as the gui locks up adding a folder with 1000s of songs). Unfortunately, I have some filenames that contain non-ascii. adding the song via the GUI works 100%.

Note the ï in Polaroïd

root@brix:/mnt/tunes#decibel-audio-player-remote pl-add "chiptunes/Zombectro\ -\ Astronausiphobia/Zombectro\ -\ Astronausiphobia\ -\ 06\ Polaroïd\ Escape.mp3"

Traceback (most recent call last):
  File "/usr/local/share/decibel-audio-player/src/remote.py", line 85, in <module>
    elif cmd == ADD: tracklist.AddTracks(absPaths, False)
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 70, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.UnicodeEncodeError: Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/dbus/service.py", line 707, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/local/share/decibel-audio-player/src/modules/DBus.py", line 288, in AddTracks
    gobject.idle_add(modules.postMsg, consts.MSG_CMD_TRACKLIST_ADD, {'tracks': media.getTracks([file for file in uris]), 'playNow': playNow})
  File "/usr/local/share/decibel-audio-player/src/media/__init__.py", line 68, in getTracks
    for directory in [filename for filename in filenames if os.path.isdir(filename)]:
  File "/usr/lib/python2.7/genericpath.py", line 41, in isdir
    st = os.stat(s)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xef' in position 90: ordinal not in range(128)

Version 1.08, XUbuntu Saucy 13.10

kevinf (kevinf)
information type: Public → Public Security
information type: Public Security → Public
description: updated
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.