mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
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:
parent
99af63d81c
commit
ed11f8e9d6
2 changed files with 7 additions and 5 deletions
|
@ -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>
|
||||
|
||||
********************
|
||||
|
||||
|
|
|
@ -72,14 +72,15 @@ class Player(ABC):
|
|||
|
||||
|
||||
AUDIO_EXTENSIONS = {
|
||||
"wav",
|
||||
"mp3",
|
||||
"ogg",
|
||||
"3gp",
|
||||
"flac",
|
||||
"m4a",
|
||||
"3gp",
|
||||
"spx",
|
||||
"mp3",
|
||||
"oga",
|
||||
"ogg",
|
||||
"opus",
|
||||
"spx",
|
||||
"wav",
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue