Skip to content

Commit d96fae5

Browse files
committed
support mime-type 'audio/mpeg' for reading cover artwork
This is required to support cover artwork from mpeg audio (mp3) files.
1 parent cd02c0e commit d96fae5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/imlib.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,8 @@ int feh_is_image(feh_file * file, int magic_flags)
293293

294294
D(("file %s has mime type: %s\n", file->filename, mime_type));
295295

296-
if (strncmp(mime_type, "image/", 6) == 0) {
296+
if (strncmp(mime_type, "image/", 6) == 0 ||
297+
strcmp(mime_type, "audio/mpeg") == 0) {
297298
return 1;
298299
}
299300

0 commit comments

Comments
 (0)