Recognize a couple new media formats.

Adding 'webp' was necessary for Anki to recognize WebP images
(https://developers.google.com/speed/webp/?csw=1) as images rather than
audio.  The addition of the audio formats was incidental, as it appears Anki
assumes audio files if a file is not an image file.
This commit is contained in:
Jonathan Hall 2015-03-14 13:00:00 -05:00
parent a0bad7da45
commit 6f77eed9bf

View file

@ -20,8 +20,8 @@ import aqt
import anki.js
from BeautifulSoup import BeautifulSoup
pics = ("jpg", "jpeg", "png", "tif", "tiff", "gif", "svg")
audio = ("wav", "mp3", "ogg", "flac", "mp4", "swf", "mov", "mpeg", "mkv", "m4a")
pics = ("jpg", "jpeg", "png", "tif", "tiff", "gif", "svg", "webp")
audio = ("wav", "mp3", "ogg", "flac", "mp4", "swf", "mov", "mpeg", "mkv", "m4a", "3gp", "spx", "oga")
_html = """
<html><head>%s<style>