diff --git a/anki/media.py b/anki/media.py index 5b3621a41..91c490440 100644 --- a/anki/media.py +++ b/anki/media.py @@ -388,9 +388,11 @@ create table log (fname text primary key, type int); removed = [] # loop through on-disk files for f in os.listdir(self.dir()): - # ignore folders + # ignore folders and thumbs.db if os.path.isdir(f): continue + if f.lower() == "thumbs.db": + continue # newly added? if f not in self.cache: added.append(f)