From 814e59e3e443e8e573f22d97be5252358790e97a Mon Sep 17 00:00:00 2001 From: Dongchen Yue Date: Wed, 15 May 2024 17:50:03 +1000 Subject: [PATCH] Allow Opus audio files --- lute/book/forms.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lute/book/forms.py b/lute/book/forms.py index 47cc92f0..74259c21 100644 --- a/lute/book/forms.py +++ b/lute/book/forms.py @@ -45,8 +45,8 @@ class NewBookForm(FlaskForm): "Audio file", validators=[ FileAllowed( - ["mp3", "wav", "ogg"], - "Please upload a valid audio file (mp3, wav, ogg)", + ["mp3", "wav", "ogg", "opus"], + "Please upload a valid audio file (mp3, wav, ogg, opus)", ) ], ) @@ -113,8 +113,8 @@ class EditBookForm(FlaskForm): "Audio file", validators=[ FileAllowed( - ["mp3", "wav", "ogg"], - "Please upload a valid audio file (mp3, wav, ogg)", + ["mp3", "wav", "ogg", "opus"], + "Please upload a valid audio file (mp3, wav, ogg, opus)", ) ], )