From 2b00e1de2448b9a80545935354d06950be1ff65f Mon Sep 17 00:00:00 2001 From: Jan Holthuis Date: Fri, 7 Jun 2019 14:17:39 +0200 Subject: [PATCH 1/2] beetsplug/importadded: Add missing path kwarg to update_after_write_time() This resolves #3301. --- beetsplug/importadded.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beetsplug/importadded.py b/beetsplug/importadded.py index 36407b14c..29aeeab0f 100644 --- a/beetsplug/importadded.py +++ b/beetsplug/importadded.py @@ -124,7 +124,7 @@ class ImportAddedPlugin(BeetsPlugin): util.displayable_path(item.path), item.added) item.store() - def update_after_write_time(self, item): + def update_after_write_time(self, item, path): """Update the mtime of the item's file with the item.added value after each write of the item if `preserve_write_mtimes` is enabled. """ From 7e4a80133e3ab52a4bbbbb67528f3789e8f93a52 Mon Sep 17 00:00:00 2001 From: Jan Holthuis Date: Tue, 11 Jun 2019 13:47:47 +0200 Subject: [PATCH 2/2] docs: Add changelog entry for #3301 fix --- docs/changelog.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/changelog.rst b/docs/changelog.rst index 264a82107..940e13ba3 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -30,6 +30,9 @@ Fixes: fixing crashes in MPD clients like mpDris2 on seek. The ``playlistid`` command now works properly in its zero-argument form. :bug:`3214` +* :doc:`/plugins/importadded`: Fixed a crash that occurred when the + ``after_write`` signal was emitted. + :bug:`3301` For plugin developers: