From e15ca7a2e76f4b6d807a652d95fb953abefac902 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 27 Apr 2022 15:06:26 +0200 Subject: [PATCH] support mime-type 'audio/mpeg' for reading cover artwork This is required to support cover artwork from mpeg audio (mp3) files. --- src/imlib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/imlib.c b/src/imlib.c index 072bf58a..196f3d06 100644 --- a/src/imlib.c +++ b/src/imlib.c @@ -301,7 +301,8 @@ int feh_is_image(feh_file * file, int magic_flags) D(("file %s has mime type: %s\n", file->filename, mime_type)); - if (strncmp(mime_type, "image/", 6) == 0) { + if (strncmp(mime_type, "image/", 6) == 0 || + strcmp(mime_type, "audio/mpeg") == 0) { return 1; }