mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
fix detection of media links in paste
'.aspx' was matching the 'spx' filter
This commit is contained in:
parent
e3885fd924
commit
3df98573b4
1 changed files with 1 additions and 1 deletions
|
@ -567,7 +567,7 @@ to a cloze type first, via Edit>Change Note Type."""))
|
||||||
def urlToFile(self, url):
|
def urlToFile(self, url):
|
||||||
l = url.lower()
|
l = url.lower()
|
||||||
for suffix in pics+audio:
|
for suffix in pics+audio:
|
||||||
if l.endswith(suffix):
|
if l.endswith("." + suffix):
|
||||||
return self._retrieveURL(url)
|
return self._retrieveURL(url)
|
||||||
# not a supported type
|
# not a supported type
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue