sandreas / tone

tone is a cross platform audio tagger and metadata editor to dump and modify metadata for a wide variety of formats, including mp3, m4b, flac and more. It has no dependencies and can be downloaded as single binary for Windows, macOS, Linux and other common platforms.
https://pilabor.com
Apache License 2.0
410 stars 17 forks source link

When auto importing covers, every file gets the same cover image #49

Open CamJN opened 1 year ago

CamJN commented 1 year ago

Using tone tag --auto-import=covers on a tree of dirs/audio books to set the cover art, every book winds up with the first image instead of the one in the same dir as it.

sandreas commented 1 year ago

Hey, thanks for reporting.

Would you mind providing the whole command you are executing and an example of the used file structure? That would make it a lot easier to reproduce... Thank you.

CamJN commented 1 year ago

tone tag --auto-import=covers --path-pattern="/data/Harry Potter/%m/%n.m4b" /data

$ ls /data/Harry Potter/
Harry Potter and the Chamber of Secrets
Harry Potter and the Deathly Hallows
Harry Potter and the Goblet of Fire
Harry Potter and the Half Blood Prince
Harry Potter and the Order of the Phoenix
Harry Potter and the Philosopher's Stone
Harry Potter and the Prisoner of Azkaban

each book is a dir that has files with the following extensions:

$ ls /data/Harry Potter/Harry Potter and the Chamber of Secrets/
cover.jpg
Harry Potter and the Chamber of Secrets.chapters.txt
Harry Potter and the Chamber of Secrets.m4b
sandreas commented 1 year ago

Superb, thank you. I'll try to reproduce this in the next days.

CamJN commented 1 year ago

Also, I have two files which cause tone to be very slow doing anything with the tags, whereas other much larger files are much faster. I wonder if it is worth opening an issue about that? I'd have to provide you the files via a different means than Github as they are too big to upload to the issue directly.

sandreas commented 1 year ago

Also, I have two files which cause tone to be very slow doing anything with the tags, whereas other much larger files are much faster.

Is probably is a behaviour in atldotnet(my main tagging lib). I'll see what I can do and get back to you asap.