beets-copyartifacts
beets-copyartifacts copied to clipboard
Not looking for underlying directory
Some of the folders I want to import have underlying directories with the artwork and log files in them. Is there a way to also detect those files?
Don't know about others but I'm using this
copyartifacts:
extensions: .cue .log .jpg .png */*
print_ignored: yes
Note the */* catches all folders, change it to suit your needs.
Also, I think the other filters would apply to the sub-folders as well, if someone else could confirm.
I have sub directories for CD volumes (for example CD01, CD02 etc...) and the Artwork directory. Artificats are copied only from the first subdirectory even with the wildcard .*
The reason for that is that base directory is determined from the first element of the list that contains music files, whatever sub directory it is, it becomes a base.
I removed the last sub directory if it contains 'CD' and all artifacts are copied for all directories under the new base. This is only 1 level nesting and only for 'CD'.
if b'CD' in os.path.basename(os.path.normpath(source_path)):
source_path = os.path.dirname(source_path)