Bugzilla – Bug 9360
Artwork scanner doesn't find arbitrarily-named cover art
Last modified: 2008-09-17 09:00:56 UTC
Created attachment 3922 [details] Add glob fallback for artwork scanner I have my album artwork in a file named after the album. For example: Underworld/dubnobasswithmyheadman/dubnobasswithmyheadman.jpg The %ALBUM.jpg pattern nearly works for my needs, but breaks in a couple of situations: * where the image isn't a specific extension - if I have a .png or .jpeg cover art file, there's doesn't seem a way to handle this. If I don't specify an extension, the scanner assumes '.jpg': Underworld/AHundredDaysOff/AHundredDaysOff.jpg Underworld/Beaucoup Fish/Beaucoup Fish.png - won't work, as the extension varies * where the filename needs to differ from the album name. For example, the album has a '/' in the name: Underworld/Dirty Epic-Cowgirl/Dirty Epic-Cowgirl.jpg - won't work, as the album name is actually "Dirty Epic/Cowgirl", but the slash has been replaced, as it can't appear in a filename The attached patch fixes this, by falling back to a glob pattern for artwork in the parent directory. The glob pattern is *.ext, where ext is any of the items in the existing list of acceptable extensions. If there are multiple matches, we just use the first. Tested on Linux. File::Glob is in the Perl core, so should work on Mac and Windows too, but testing would be great.
see also bug 601
*** This bug has been marked as a duplicate of bug 601 ***