beets-copyartifacts icon indicating copy to clipboard operation
beets-copyartifacts copied to clipboard

artifacts are not copied when using beet mod

Open acastaner opened this issue 9 years ago • 2 comments

If you use beet mod, some files can be potentially moved.

For instance, given these two configured paths:

paths: default: _trier/$albumartist/$albumartist - $year - $album/$disc_and_track. $title savedir: metal: metal_hard-rock/$albumartist/$albumartist - $year - $album/$disc_and_track. $tit

And then typing this command:

beet mod savedir=metal artist:Metallica

Beets will add the "savedir" field in the matching files, and put the "metal" value in it. Since there's a path directive that matches this, beets will also move the files to te "metal_hard-rock" directory. But it seems that copyartifact doesn't hook to that function because the artifacts I've defined (*.cue and *.log) for instance will not be copied, and instead will stay in the "_trier" directory.

For reference, this is my copyartifact section:

copyartifacts: extensions: .cue .log folder.jpg folder.png Folder.jpg folder.png

Maybe I'm doing something wrong, but the artifacts seem properly moved upon import - just not when using "modify."

acastaner avatar Feb 26 '16 09:02 acastaner

DId you find a solution to this? This is also a problem when using beet move to update a directory structure.

benpye avatar Oct 09 '16 23:10 benpye

No solution no, as far as I can tell this plugin hooks only into the "import" directive and no other.

acastaner avatar Oct 12 '16 08:10 acastaner