mirror of
https://github.com/ankitects/anki.git
synced 2026-01-14 22:39:06 -05:00
fix detection of media links in paste
'.aspx' was matching the 'spx' filter
This commit is contained in:
parent
61cc3cec86
commit
ae63dfb520
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