From e94b6ed8e4cc925c2051c133fa3b5d3b2b2971a2 Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Tue, 22 Feb 2022 14:54:05 +0100 Subject: extras: Specify full list of arguments --- beetsplug/extras.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'beetsplug/extras.py') diff --git a/beetsplug/extras.py b/beetsplug/extras.py index 32fe3f6..a8d02e0 100644 --- a/beetsplug/extras.py +++ b/beetsplug/extras.py @@ -9,11 +9,11 @@ class ExtrasPlugin(beets.plugins.BeetsPlugin): self.register_listener('item_moved', self.on_item_moved) self.register_listener('item_copied', self.on_item_copied) - def on_item_moved(self, _, source, destination): + def on_item_moved(self, item, source, destination): for (sourcepath, destpath) in self.gather(source, destination): os.rename(sourcepath, destpath) - def on_item_copied(self, _, source, destination): + def on_item_copied(self, item, source, destination): for (sourcepath, destpath) in self.gather(source, destination): if os.path.isdir(sourcepath): shutil.copytree(sourcepath, destpath) -- cgit v1.2.3-2-gb3c3