From 3cd311191aa500cc243922c0e002ad0ecdb1f848 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 6 Feb 2021 15:10:49 +1000 Subject: [PATCH] add opus to supported audio list and sort --- qt/aqt/editor.py | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/qt/aqt/editor.py b/qt/aqt/editor.py index 85c400a4d..2f59286bf 100644 --- a/qt/aqt/editor.py +++ b/qt/aqt/editor.py @@ -51,25 +51,26 @@ from aqt.webview import AnkiWebView pics = ("jpg", "jpeg", "png", "tif", "tiff", "gif", "svg", "webp", "ico") audio = ( - "wav", - "mp3", - "ogg", - "flac", - "mp4", - "swf", - "mov", - "mpeg", - "mkv", - "m4a", "3gp", - "spx", - "oga", - "webm", - "mpg", - "ogx", "avi", + "flac", "flv", + "m4a", + "mkv", + "mov", + "mp3", + "mp4", + "mpeg", + "mpg", + "oga", + "ogg", "ogv", + "ogx", + "opus", + "spx", + "swf", + "wav", + "webm", ) _html = """