Skip to content

Commit

Permalink
Merge pull request #420 from yue-dongchen/master
Browse files Browse the repository at this point in the history
Allow Opus audio files
jzohrab authored May 17, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents ca0dd74 + 814e59e commit 176f586
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lute/book/forms.py
Original file line number Diff line number Diff line change
@@ -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)",
)
],
)

0 comments on commit 176f586

Please sign in to comment.