From f8abd50090e5ffcd28e6342d5310ccd29df1f430 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Inge=20Lea=20Bj=C3=B8rnsen?= Date: Mon, 12 May 2014 21:06:25 +0200 Subject: [PATCH] Only delete album item mtimes that are in the dictionary. --- beetsplug/importmtimes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beetsplug/importmtimes.py b/beetsplug/importmtimes.py index 5921beaf1..2e572a8b3 100644 --- a/beetsplug/importmtimes.py +++ b/beetsplug/importmtimes.py @@ -73,7 +73,7 @@ def update_album_times(lib, album): if config['importmtimes']['preserve_mtimes'].get(bool): write_item_mtime(item, mtime) item.store() - del item_mtime[item.path] + del item_mtime[item.path] album.added = min(album_mtimes) album.store()