summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/plugins/pictureflow/pictureflow.c2
-rw-r--r--apps/recorder/albumart.c18
2 files changed, 12 insertions, 8 deletions
diff --git a/apps/plugins/pictureflow/pictureflow.c b/apps/plugins/pictureflow/pictureflow.c
index 2baea2a..218f0a9 100644
--- a/apps/plugins/pictureflow/pictureflow.c
+++ b/apps/plugins/pictureflow/pictureflow.c
@@ -892,7 +892,7 @@ bool get_albumart_for_index_from_db(const int slide_index, char *buf,
rb->get_metadata(&id3, fd, tcs.result);
rb->close(fd);
}
- if ( search_albumart_files(&id3, "", buf, buflen) )
+ if ( search_albumart_files(&id3, ":", buf, buflen) )
result = true;
else
result = false;
diff --git a/apps/recorder/albumart.c b/apps/recorder/albumart.c
index e052906..d0026b6 100644
--- a/apps/recorder/albumart.c
+++ b/apps/recorder/albumart.c
@@ -156,13 +156,17 @@ bool search_albumart_files(const struct mp3entry *id3, const char *size_string,
albumlen = id3->album ? strlen(id3->album) : 0;
/* the first file we look for is one specific to the track playing */
- strip_extension(path, sizeof(path) - strlen(size_string) - 4, trackname);
- strcat(path, size_string);
- strcat(path, "." EXT);
-#ifdef USE_JPEG_COVER
- pathlen = strlen(path);
-#endif
- found = try_exts(path, pathlen);
+ if (*size_string == ':')
+ size_string++;
+ else {
+ strip_extension(path, sizeof(path) - strlen(size_string) - 4, trackname);
+ strcat(path, size_string);
+ strcat(path, "." EXT);
+ #ifdef USE_JPEG_COVER
+ pathlen = strlen(path);
+ #endif
+ found = try_exts(path, pathlen);
+ }
if (!found && albumlen > 0)
{
/* if it doesn't exist,