Add .opus as an audio extension

Wikimedia Commons has pronunciation recordings with .opus extension.
Anki is able to play such files, but until now adding them required
changing the extension to .ogg or some other supported one.

Also sort the audio extensions list.
This commit is contained in:
Piotr Kubowicz 2020-10-10 16:22:06 +02:00
parent 99af63d81c
commit ed11f8e9d6
2 changed files with 7 additions and 5 deletions

View file

@ -63,6 +63,7 @@ Jakub Kaczmarzyk <jakub.kaczmarzyk@gmail.com>
Akshara Balachandra <akshara.bala.18@gmail.com>
lukkea <github.com/lukkea/>
David Allison <davidallisongithub@gmail.com>
Piotr Kubowicz <piotr.kubowicz@gmail.com>
********************

View file

@ -72,14 +72,15 @@ class Player(ABC):
AUDIO_EXTENSIONS = {
"wav",
"mp3",
"ogg",
"3gp",
"flac",
"m4a",
"3gp",
"spx",
"mp3",
"oga",
"ogg",
"opus",
"spx",
"wav",
}