From 9145c9a52c1ce8e6786d3463ddcb4c36bdeee9ed Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Mon, 8 Jun 2020 21:50:11 +0200 Subject: [PATCH] Fix #1397 (Reenabled m4a, m4b audio playback) --- cps/constants.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cps/constants.py b/cps/constants.py index a9c35950..ccb0d8a8 100644 --- a/cps/constants.py +++ b/cps/constants.py @@ -111,10 +111,10 @@ except ValueError: del env_CALIBRE_PORT -EXTENSIONS_AUDIO = {'mp3', 'mp4', 'ogg', 'opus', 'wav', 'flac'} +EXTENSIONS_AUDIO = {'mp3', 'mp4', 'ogg', 'opus', 'wav', 'flac', 'm4a', 'm4b'} EXTENSIONS_CONVERT = ['pdf', 'epub', 'mobi', 'azw3', 'docx', 'rtf', 'fb2', 'lit', 'lrf', 'txt', 'htmlz', 'rtf', 'odt'] EXTENSIONS_UPLOAD = {'txt', 'pdf', 'epub', 'kepub', 'mobi', 'azw', 'azw3', 'cbr', 'cbz', 'cbt', 'djvu', 'prc', 'doc', 'docx', - 'fb2', 'html', 'rtf', 'lit', 'odt', 'mp3', 'mp4', 'ogg', 'opus', 'wav', 'flac'} + 'fb2', 'html', 'rtf', 'lit', 'odt', 'mp3', 'mp4', 'ogg', 'opus', 'wav', 'flac', 'm4a', 'm4b'} def has_flag(value, bit_flag):