I’m trying to help the importer find album types by scanning for things like “OST” in the file path. I can’t figure out how to write data after I’ve found something I want to change.
The hook plugin runs a system command (like echo or beet), so for your write events it’s telling windows to execute the command if "soundtrack" in {path}: beet modify {item} albumtype=soundtrack, which isn’t a known command (windows can’t find the command file).
Are you trying to help the importer more quickly identify albums during autotagging, or do you want to overwrite the albumtype that is set by the autotagger?
Are you trying to help the importer more quickly identify albums during autotagging, or do you want to overwrite the albumtype that is set by the autotagger?
Overwrite what is set by the autotagger. I’ve found I have several albums that aren’t tagged correctly or won’t update unless I use the edit plugin. I’m trying to speed up & automate the process of fixing them.
Hmm, I don’t think there’s a way to tell the importer to look for things in the path, but I could be wrong. There are a couple ways I can think of (that I have not tested well, so use with care):
Option 1
Use the --set option with import and only import certain files, e.g. using shell globbing