diff --git a/aqt/editor.py b/aqt/editor.py index 9d37aa1ae..bf372f8c7 100644 --- a/aqt/editor.py +++ b/aqt/editor.py @@ -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