From 484e26dd9c03704adb60f209cf6301b52c4a04c7 Mon Sep 17 00:00:00 2001 From: Antoine Tenart Date: Tue, 12 Jun 2018 21:27:44 +0200 Subject: [PATCH] libmat2: audio: add the audio/x-flac mime type The FLAC parser looks for the 'audio/flac' mime type, but Fedora defines 'audio/x-flac' in /etc/mime.types for FLAC files. Add this mime type to the audio parser. Fixes #36. Signed-off-by: Antoine Tenart --- libmat2/audio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmat2/audio.py b/libmat2/audio.py index 3a6aa79..9b73031 100644 --- a/libmat2/audio.py +++ b/libmat2/audio.py @@ -36,4 +36,4 @@ class OGGParser(MutagenParser): class FLACParser(MutagenParser): - mimetypes = {'audio/flac', } + mimetypes = {'audio/flac', 'audio/x-flac' }