aboutsummaryrefslogtreecommitdiffstats
path: root/beetsplug/extras.py
diff options
context:
space:
mode:
authorWolfgang Müller2022-02-22 14:54:05 +0100
committerWolfgang Müller2022-02-22 14:54:05 +0100
commite94b6ed8e4cc925c2051c133fa3b5d3b2b2971a2 (patch)
tree2024e3b006bf0ac74f31a551a17b5e11422d2b3d /beetsplug/extras.py
parentaa450d1964ff3466ca19f5e015ac0ed5d18c6bdd (diff)
downloadbeets-oriole-e94b6ed8e4cc925c2051c133fa3b5d3b2b2971a2.tar.gz
extras: Specify full list of arguments
Diffstat (limited to '')
-rw-r--r--beetsplug/extras.py4
1 files changed, 2 insertions, 2 deletions
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)