When looking for album art in /.rockbox/albumart/, use album artist rather than artist, if available.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17171 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
92ed035fe6
commit
79fb077933
1 changed files with 5 additions and 2 deletions
|
@ -108,6 +108,7 @@ bool search_albumart_files(const struct mp3entry *id3, const char *size_string,
|
|||
char dir[MAX_PATH + 1];
|
||||
bool found = false;
|
||||
const char *trackname;
|
||||
const char *artist;
|
||||
int dirlen;
|
||||
int albumlen;
|
||||
|
||||
|
@ -146,12 +147,14 @@ bool search_albumart_files(const struct mp3entry *id3, const char *size_string,
|
|||
found = file_exists(path);
|
||||
}
|
||||
|
||||
if (!found && id3->artist && id3->album)
|
||||
artist = id3->albumartist != NULL ? id3->albumartist : id3->artist;
|
||||
|
||||
if (!found && artist && id3->album)
|
||||
{
|
||||
/* look in the albumart subdir of .rockbox */
|
||||
snprintf(path, sizeof(path),
|
||||
ROCKBOX_DIR "/albumart/%s-%s%s.bmp",
|
||||
id3->artist,
|
||||
artist,
|
||||
id3->album,
|
||||
size_string);
|
||||
fix_path_part(path, strlen(ROCKBOX_DIR "/albumart/"), MAX_PATH);
|
||||
|
|
Loading…
Reference in a new issue