we shouldn't be quoting sound tags

This commit is contained in:
Damien Elmes 2013-05-27 12:15:21 +09:00
parent 444f99b7ba
commit 78155afb09

View File

@ -866,8 +866,8 @@ to a cloze type first, via Edit>Change Note Type."""))
pass
# return a local html link
ext = name.split(".")[-1].lower()
name = urllib.quote(name.encode("utf8"))
if ext in pics:
name = urllib.quote(name.encode("utf8"))
return '<img src="%s">' % name
else:
anki.sound.play(name)