From 609e57f0a0234173e75542a78beab5859cfc4b9e Mon Sep 17 00:00:00 2001 From: Mike Kazantsev Date: Sat, 20 Oct 2012 20:10:29 +0600 Subject: [PATCH] library: don't set/update item mtime if read-path is passed to read() --- beets/library.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/beets/library.py b/beets/library.py index b634d3951..24ac1df0c 100644 --- a/beets/library.py +++ b/beets/library.py @@ -277,12 +277,13 @@ class Item(object): for key in ITEM_KEYS_META: setattr(self, key, getattr(f, key)) - self.path = read_path # Database's mtime should now reflect the on-disk value. if read_path == self.path: self.mtime = self.current_mtime() + self.path = read_path + def write(self): """Writes the item's metadata to the associated file. """