summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/recorder/albumart.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/recorder/albumart.c b/apps/recorder/albumart.c
index 13969d7..c4d3a0e 100644
--- a/apps/recorder/albumart.c
+++ b/apps/recorder/albumart.c
@@ -115,6 +115,10 @@ bool search_albumart_files(const struct mp3entry *id3, const char *size_string,
return false;
trackname = id3->path;
+
+ if (strcmp(trackname, "No file!") == 0)
+ return false;
+
strip_filename(dir, sizeof(dir), trackname);
dirlen = strlen(dir);
albumlen = id3->album ? strlen(id3->album) : 0;
@@ -142,7 +146,7 @@ bool search_albumart_files(const struct mp3entry *id3, const char *size_string,
found = file_exists(path);
}
- if (!found)
+ if (!found && id3->artist && id3->album)
{
/* look in the albumart subdir of .rockbox */
snprintf(path, sizeof(path),