diff options
author | Wolfgang Müller | 2022-02-22 14:54:05 +0100 |
---|---|---|
committer | Wolfgang Müller | 2022-02-22 14:54:05 +0100 |
commit | e94b6ed8e4cc925c2051c133fa3b5d3b2b2971a2 (patch) | |
tree | 2024e3b006bf0ac74f31a551a17b5e11422d2b3d | |
parent | aa450d1964ff3466ca19f5e015ac0ed5d18c6bdd (diff) | |
download | beets-oriole-e94b6ed8e4cc925c2051c133fa3b5d3b2b2971a2.tar.gz |
extras: Specify full list of arguments
-rw-r--r-- | beetsplug/extras.py | 4 |
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) |