diff --git a/apps/recorder/albumart.c b/apps/recorder/albumart.c index d0026b638c..e33fcb8d08 100644 --- a/apps/recorder/albumart.c +++ b/apps/recorder/albumart.c @@ -120,16 +120,20 @@ static bool try_exts(char *path, int len) #endif /* Look for the first matching album art bitmap in the following list: - * ./.bmp - * ./.bmp + * ./.{jpeg,jpg,bmp} + * ./.{jpeg,jpg,bmp} * ./cover.bmp - * ../.bmp - * ../cover.bmp - * ROCKBOX_DIR/albumart/-.bmp + * ../.{jpeg,jpg,bmp} + * ../cover.{jpeg,jpg,bmp} + * ROCKBOX_DIR/albumart/-.{jpeg,jpg,bmp} * is the value of the size_string parameter, and * are read from the ID3 metadata. * If a matching bitmap is found, its filename is stored in buf. * Return value is true if a bitmap was found, false otherwise. + * + * If the first symbol in size_string is a colon (e.g. ":100x100") + * then the colon is skipped ("100x100" will be used) and the track + * specific image (./.bmp) is not tried. */ bool search_albumart_files(const struct mp3entry *id3, const char *size_string, char *buf, int buflen)