fix _retrieveURL()

This commit is contained in:
Damien Elmes 2011-05-04 16:40:41 +09:00
parent 68817218a4
commit 3bfb60c757

View file

@ -919,7 +919,7 @@ class EditorWebView(AnkiWebView):
def _retrieveURL(self, url):
# is it media?
ext = name.split(".")[-1].lower()
ext = url.split(".")[-1].lower()
if ext not in pics and ext not in audio:
return
# fetch it into a temporary folder