GNOME Bugzilla – Bug 517103
LocalCoverArtSearch returns path without URI scheme for images
Last modified: 2008-03-18 10:05:31 UTC
Please describe the problem: I added some debugging info to get_best_match_urls(). First is what currently happens in Rhythmbox (the last line is 'yield self.uri.parent.append_file_name (f_name).path') (23:56:26) [0x6c9500] [LocalCoverArtSearch.search] LocalCoverArtSearch.py:108: searching for art local to (23:56:26) [0x6c9500] [LocalCoverArtSearch.search] LocalCoverArtSearch.py:108: (23:56:26) [0x6c9500] [LocalCoverArtSearch.search] LocalCoverArtSearch.py:108: smb://gandalf/music/Albums/Therion/2004a%20-%20Sirius%20B/Therion%20-%20Sirius%20B%20-%2008%20-%20Melek%20Taus.mp3 (23:56:26) [0x6c9500] [LocalCoverArtSearch.get_best_match_urls] LocalCoverArtSearch.py:137: file (23:56:26) [0x6c9500] [LocalCoverArtSearch.get_best_match_urls] LocalCoverArtSearch.py:137: (23:56:26) [0x6c9500] [LocalCoverArtSearch.get_best_match_urls] LocalCoverArtSearch.py:137: /music/Albums/Therion/2004a%20-%20Sirius%20B/folder.jpg And this is what it should be ('yield self.uri.parent.append_file_name (f_name)') (00:08:18) [0x6c9500] [LocalCoverArtSearch.search] LocalCoverArtSearch.py:108: searching for art local to (00:08:18) [0x6c9500] [LocalCoverArtSearch.search] LocalCoverArtSearch.py:108: (00:08:18) [0x6c9500] [LocalCoverArtSearch.search] LocalCoverArtSearch.py:108: smb://gandalf/music/Albums/Therion/2004a%20-%20Sirius%20B/Therion%20-%20Sirius%20B%20-%2010%20-%20Sirius%20B.mp3 (00:08:18) [0x6c9500] [LocalCoverArtSearch.get_best_match_urls] LocalCoverArtSearch.py:137: file (00:08:18) [0x6c9500] [LocalCoverArtSearch.get_best_match_urls] LocalCoverArtSearch.py:137: (00:08:18) [0x6c9500] [LocalCoverArtSearch.get_best_match_urls] LocalCoverArtSearch.py:137: smb://gandalf/music/Albums/Therion/2004a%20-%20Sirius%20B/folder.jpg Steps to reproduce: 1. Add 'print self.uri.parent.append_file_name (f_name).path' just above the last line of get_best_match_urls() in LocalCoverSearch.py and recompile with py_compilefiles 2. Start Rhythmbox with 'rhythmbox -D LocalCoverArtSearch&' 3. Play some music on a Samba share with a folder which contains a folder.jpg or other valid cover file 3. See that a wrong file name is generated Actual results: You will see that the filename is wrong, it's something like: /music/Albums/Therion/2004a%20-%20Sirius%20B/folder.jpg Expected results: But it should be something like: smb://gandalf/music/Albums/Therion/2004a%20-%20Sirius%20B/folder.jpg Does this happen every time? Yes Other information:
Fixed in svn. Thanks for picking this up. 2008-03-18 Jonathan Matthew <jonathan@d14n.org> * plugins/artdisplay/artdisplay/LocalCoverArtSearch.py: Return the full URI, rather than just the path. Allows local cover art searches to work on SMB shares. Fixes #517103.