From 30edbf7aa1265dd847f5a9e996a5851b7afb4e71 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 bfb1c06e..9dafd840 100644 --- a/src/imlib.c +++ b/src/imlib.c @@ -309,7 +309,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; }