GNOME Bugzilla – Bug 644145
File Location smart playlist don't work for the StartsWith case
Last modified: 2011-12-11 20:51:18 UTC
When creating a smart playlist using “Starts with” it is necessary to use URL syntax (file:///home/example) despite the fact that in every case (file properties as well as the File Location display column) Banshee simply uses the plain path (/home/example/Music/foo.mp3)
Confirming. (Working on it.)
Found out the problem, it's not that it wasn't documented, because the user was not actually required to use the Uri syntax (it was just in the StartsWith case in which there was a bug). Going to attach a patch.
Created attachment 203218 [details] [review] Proposed patch
Review of attachment 203218 [details] [review]: Looks good, please commit. Try to take my comment into account, but it's just a nitpick. ::: Hyena/Hyena.Query/Tests/QueryTests.cs @@ +234,3 @@ + [Test] // http://bugzilla.gnome.org/show_bug.cgi?id=644145 + public void QueryUriWithStartsWithOpAddingFileUriSchemeToSqlQuery () That is an interesting method name... ;) If you can find a shorter name, that'd be better.
Comment on attachment 203218 [details] [review] Proposed patch (In reply to comment #4) > That is an interesting method name... ;) > If you can find a shorter name, that'd be better. Heh, fixed that, and committed. Thanks for the review!
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.