If I understand correctly, this might be a good use case for the “hook” command: http://beets.readthedocs.io/en/v1.4.5/plugins/hook.html
This doesn’t run commands after other commands, but it does run commands after specific internal events fire. Adrian > On Jan 13, 2018, at 3:29 PM, Bearcat Şándor <[email protected]> wrote: > > I'd like to be able to process the currently importing file with command line > programs. For instance i have a command line program that gives me the > dynamic range of a music file. So, when a file is processed i'd like to be > able to do a > > beet modify dynamic_range=`$home/myscripts/main.py --no-log $i` $i > beet modify source="common mastering" $i > beet modify speakermatrix="stereo"$i > > Where $i is the file currently being processed (like the convert plugin does > with $dest and $source) this would run the program to determine the DR and > apply it to the track, and apply a few default values for some custom fields > to the track as well. > > So, is there an easy way to add config options that run commands on the > current track being processed? > > Thanks. > > -- > You received this message because you are subscribed to the Google Groups > "beets" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "beets" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
