Only delete album item mtimes that are in the dictionary.

This commit is contained in:
Stig Inge Lea Bjørnsen 2014-05-12 21:06:25 +02:00
parent 94aad7e309
commit f8abd50090

View file

@ -73,7 +73,7 @@ def update_album_times(lib, album):
if config['importmtimes']['preserve_mtimes'].get(bool): if config['importmtimes']['preserve_mtimes'].get(bool):
write_item_mtime(item, mtime) write_item_mtime(item, mtime)
item.store() item.store()
del item_mtime[item.path] del item_mtime[item.path]
album.added = min(album_mtimes) album.added = min(album_mtimes)
album.store() album.store()