mirror of
https://github.com/ankitects/anki.git
synced 2025-11-12 15:47:12 -05:00
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:
parent
a0bad7da45
commit
6f77eed9bf
1 changed files with 2 additions and 2 deletions
|
|
@ -20,8 +20,8 @@ import aqt
|
||||||
import anki.js
|
import anki.js
|
||||||
from BeautifulSoup import BeautifulSoup
|
from BeautifulSoup import BeautifulSoup
|
||||||
|
|
||||||
pics = ("jpg", "jpeg", "png", "tif", "tiff", "gif", "svg")
|
pics = ("jpg", "jpeg", "png", "tif", "tiff", "gif", "svg", "webp")
|
||||||
audio = ("wav", "mp3", "ogg", "flac", "mp4", "swf", "mov", "mpeg", "mkv", "m4a")
|
audio = ("wav", "mp3", "ogg", "flac", "mp4", "swf", "mov", "mpeg", "mkv", "m4a", "3gp", "spx", "oga")
|
||||||
|
|
||||||
_html = """
|
_html = """
|
||||||
<html><head>%s<style>
|
<html><head>%s<style>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue