don't check extension when localizing image sources
fixes https://anki.tenderapp.com/discussions/beta-testing/916-pictures-not-showing-on-iphoneipad-ios11-when-not-connected-to-internet
This commit is contained in:
parent
0b3685193d
commit
56444ab967
@ -607,6 +607,8 @@ to a cloze type first, via Edit>Change Note Type."""))
|
||||
return
|
||||
finally:
|
||||
self.mw.progress.finish()
|
||||
# strip off any query string
|
||||
url = re.sub("\?.*?$", "", url)
|
||||
path = urllib.parse.unquote(url)
|
||||
return self.mw.col.media.writeData(path, filecontents)
|
||||
|
||||
@ -645,7 +647,7 @@ to a cloze type first, via Edit>Change Note Type."""))
|
||||
else:
|
||||
# in external pastes, download remote media
|
||||
if self.isURL(src):
|
||||
fname = self.urlToFile(src)
|
||||
fname = self._retrieveURL(src)
|
||||
if fname:
|
||||
tag['src'] = fname
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user