mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
don't include http/ftp links in media db
This commit is contained in:
parent
7c45bab35a
commit
5c4d7b1789
1 changed files with 2 additions and 1 deletions
|
@ -121,6 +121,7 @@ def mediaFiles(string):
|
|||
l = []
|
||||
for reg in regexps:
|
||||
for (full, fname) in re.findall(reg, string):
|
||||
if not re.match("(https?|ftp)://", fname.lower()):
|
||||
l.append(fname)
|
||||
return l
|
||||
|
||||
|
|
Loading…
Reference in a new issue