diff options
Diffstat (limited to 'beetsplug/extras.py')
-rw-r--r-- | beetsplug/extras.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/beetsplug/extras.py b/beetsplug/extras.py index e731b6e..8227064 100644 --- a/beetsplug/extras.py +++ b/beetsplug/extras.py @@ -11,7 +11,9 @@ class ExtrasPlugin(beets.plugins.BeetsPlugin): def on_item_moved(self, item, source, destination): for (sourcepath, destpath) in self.gather(source, destination): - shutil.move(sourcepath, destpath) + # need to decode to str here as shutil.move (still) breaks on bytes + # arguments because of _destinsrc using str.endswith + shutil.move(sourcepath.decode(), destpath.decode()) def on_item_copied(self, item, source, destination): for (sourcepath, destpath) in self.gather(source, destination): |