mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -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):
|
||||
l = url.lower()
|
||||
for suffix in pics+audio:
|
||||
if l.endswith(suffix):
|
||||
if l.endswith("." + suffix):
|
||||
return self._retrieveURL(url)
|
||||
# not a supported type
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue