After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 329723 - On a generic mp3 player, file names with spaces in them do not show up.
On a generic mp3 player, file names with spaces in them do not show up.
Status: RESOLVED FIXED
Product: rhythmbox
Classification: Other
Component: Importing
0.9.3
Other All
: Normal normal
: ---
Assigned To: RhythmBox Maintainers
RhythmBox Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-02-03 05:59 UTC by Adam Zimmerman
Modified: 2006-02-04 04:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch to fix this (2.16 KB, patch)
2006-02-03 13:27 UTC, James "Doc" Livingston
committed Details | Review

Description Adam Zimmerman 2006-02-03 05:59:53 UTC
Please describe the problem:
Using a generic usb audio player, which is recognized by hal as such, rhythmbox
does not show tracks which have a space in the file name.

Steps to reproduce:
1. Insert a usb mp3 player
2. Click on the device source in rb
3. Tracks with spaces in the filenames are missing (in my case, this is every track)


Actual results:
If started with the -d flag, rhythmbox says this somewhere in the log, for every
file with a space in the name:

[0x813d290] [rhythmdb_execute_stat_info_cb] rhythmdb.c:1844 (21:30:06): got
error on
file:///media/usbdisk/Bad%20Religion/The%20Process%20of%20Belief/10.%20Bad%20Religion%20-%20Evangeline.ogg:
Could not access
file:///media/usbdisk/Bad%20Religion/The%20Process%20of%20Belief/10.%20Bad%20Religion%20-%20Evangeline.ogg:
File not found

Expected results:
The tracks should appear.

Does this happen every time?
This happens every time with my mp3 player, however the library does not suffer
from the problem.

Other information:
If I rename a file so that it has no spaces in the name, it shows up in the list.
Comment 1 Kaj-Michael Lang 2006-02-03 12:39:20 UTC
Same thing happened for me with initial import using the first time wizard. Manualy using "Import folder..." imported the rest of the files just fine.
Comment 2 James "Doc" Livingston 2006-02-03 13:27:53 UTC
Created attachment 58646 [details] [review]
patch to fix this

The issue is that the druid and generic mp3 player code were passing paths instead of URIs. This patch fixes it in those places, but also in maks rhythmdb_add_uri canonicalise the passed string, so that it can handle things passing paths.

Since this breaks the first-run druid, this is probably cause for 0.9.3.1.
Comment 3 James "Doc" Livingston 2006-02-04 04:22:56 UTC
Patch committed to cvs, on HEAD and the branch for 0.9.3.1