GNOME Bugzilla – Bug 361077
Copying songs from DAAP to iPod doesn't work
Last modified: 2006-11-19 09:19:27 UTC
Please describe the problem: Dragging a (or a bunch of) remotely song(s) from a DAAP share to the iPod doesn't actually copy the song. Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? yes Other information:
Can you attach the log of "rhythmbox -d" showing what happens when you attempt the copy?
Created attachment 74751 [details] rhythmbox -d output when dragging an album (12 songs) from daap to ipod Attached the output of 'rhythmbox -d' when dragging an album (12 songs) from daap to the ipod.
This happens because the target source calls gnome_vfs_uri_new with the source URI (in ipod_get_filename_for_uri), and gnome-vfs doesn't understand daap:// URIs. I'm not sure exactly what we should do about this, but avoiding gnome_vfs_uri_new is probably a good idea.
Created attachment 75717 [details] [review] potential patch This basically reimplements the GnomeVFSUri function, but for arbitrary char* uris. I haven't done a huge amount of testing, but I think it is right.
Created attachment 76419 [details] [review] another patch moves rb_uri_extract_short_name to rb-file-helpers.c, adds some unit tests for it, and teaches it about query strings.
Looks good to me.
OK, committed.