This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#10201 - Fix album art file search priority
Attached to Project:
Rockbox
Opened by Akio Idehara (idak) - Monday, 11 May 2009, 17:45 GMT+2
Last edited by Andrew Mahone (Unhelpful) - Saturday, 16 May 2009, 01:27 GMT+2
Opened by Akio Idehara (idak) - Monday, 11 May 2009, 17:45 GMT+2
Last edited by Andrew Mahone (Unhelpful) - Saturday, 16 May 2009, 01:27 GMT+2
|
DetailsAlbum Art file search order of priority is described as the following:
--- 1. ./ filename . ext - same filename as currently playing music file 2. ./ albumtitle . ext - name of the album, found in metadata of the music file 3. ./cover. ext 4. ./folder.jpg 5. /.rockbox/albumart/ artist-albumtitle . ext 6. ../ albumtitle . ext 7. ../cover. ext --- But, "./folder.jpg" priority is higher than "./cover.bmp". This patch fixes this issue. |
This task depends upon
Closed by Andrew Mahone (Unhelpful)
Saturday, 16 May 2009, 01:27 GMT+2
Reason for closing: Accepted
Additional comments about closing: Suggested fix of skipping folder.jpg with size_string committed as r20951.
Saturday, 16 May 2009, 01:27 GMT+2
Reason for closing: Accepted
Additional comments about closing: Suggested fix of skipping folder.jpg with size_string committed as r20951.
And pictureflow's Album Art file search order of priority is different from WPS.
#pictureflow priority is as wiki.
So I'm confused.
Which priority is correct?
Or different priority is intentioned?
Also, both PictureFlow and the WPS use the same function when searching for AA, so I find it hard to believe that they use different priority.
First one is with size_strings (like ".100x100") and
Second one is without size_strings (like "").
So WPS exact search order is the following.
--
o First call
1. ./filename.100x100.bmp
2. ./albumtitle.100x100.bmp
3. ./cover.100x100.bmp
4. ./folder.jpg <<< without size_string!
5. /.rockbox/albumart/artist-albumtitle.100x100.bmp
6. ../albumtitle.100x100.bmp
7. ../cover.100x100.bmp
o Second call
8. ./filename.bmp
9. ./albumtitle.bmp
10. ./cover.bmp
11. ./folder.jpg << never select because above 4. priority is high
12. /.rockbox/albumart/artist-albumtitle.bmp
13. ../albumtitle.bmp
14. ../cover.bmp
--
And PictureFlow calls search function(search_albumart_files()) once
without size_string.
So PictureFlow search order is above "Second call"(8. - 14.).
As the result, WPS loads "folder.jpg", but PictureFlow loads "cover.bmp".
This patch is that if size_string is "" then "folder.jpg" search is skipped.
The patch looks correct to me.
(Edit: Darn, too late. :) )
This might not be true at the moment, but it ought to be MADE true,...!
This patch is that if size_string is _not_ "" then "folder.jpg" search is skipped