This may be beyond the scope of beets. I’m trying to use a separate python script to pull album art from VGMDB and everything works, but I need to provide a # or link. When automating this through beats, I can’t seem to find any other way to get this to work. Here is the code I’m looking at:
config.yaml
hooks:
#not working yet, need to figure out how to input the catalogue number. want to get this to go soon!
- event: album_imported
command: /bin/sh -c 'cd "{album.path}" && python3 /config/scandownloader/vgmdbrip.py $catalognum'
#command: 'cd "{album.path}" && python3 /config/scandownloader/vgmdbrip.py LZC-2269'
This command works if I put in a number manually, but I’d love to pull it from $catalognum if possible
The $catalognum reference is used when called upon by paths
default: "[$genre]/%tcp{$album} ($year)(%substitute{$albumtype}) [$catalognum]/$disc_and_track $title"
Resulting in: VISIONS (Feat. Takuma Terashima) ∕ Akane Kumada (2022)(Vocal) [LZC-2269]
I assume it’s because the command is being run somewhat externally it has no reference to any of the actual values in beets. Is there anyway to feed it that somehow?