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

Not looking for underlying directory

Open TimvHerpen opened this issue 7 years ago • 2 comments

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?

TimvHerpen avatar Dec 18 '17 23:12 TimvHerpen

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.

0urobor0s avatar May 31 '18 16:05 0urobor0s

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)

nadl40 avatar Nov 23 '18 23:11 nadl40