sandreas / m4b-tool

m4b-tool is a command line utility to merge, split and chapterize audiobook files such as mp3, ogg, flac, m4a or m4b
MIT License
1.14k stars 77 forks source link

Parameter `--equate` produces an error message under specific circumstances #201

Open 2600box opened 1 year ago

2600box commented 1 year ago

Hello,

I have been using m4b-tool to take metadata from directories and include it in my audiobooks. Works great like this:

m4b-tool merge -v --no-conversion --jobs=2 --output-file="output/" --batch-pattern="en/%g/%a/%n/" en

The problem is that I need to have the Album field populated as well as the Title though they can be the same.

Can you please direct me on this one? I am stumped!

Thanks!

sandreas commented 1 year ago

Use --equate=name,album...

m4b-tool merge -v --no-conversion --jobs=2 --output-file="output/" --batch-pattern="en/%g/%a/%n/" en --equate=name,album
2600box commented 1 year ago

Thanks!

sandreas commented 1 year ago

You're welcome :-)

2600box commented 1 year ago

Sorry to bother you with this, but this gives an error I don't understand... m4b-tool merge -v --no-conversion --jobs=2 --output-file="output/" --equate=name,album --batch-pattern="en/%g/%a/%n/" en

destination property title is not a scalar value and cannot be equateed

Any idea what is going on?

sandreas commented 1 year ago

Any idea what is going on?

maybe an issue with the equate tagger. I'll take a look. Could you please tell me which version and which os you are using? To get the version please run:

m4b-tool --version
2600box commented 1 year ago

Thanks!

m4b-tool latest-168-gb154c85

Debian GNU/Linux 11 (bullseye)"

sandreas commented 1 year ago

ok, strange. I'll take a look asap...

sandreas commented 1 year ago

Well, as I pointed out in #201, I could not reproduce this... I would need the exact file structure for a next try to reproduce. I'm very sorry.

2600box commented 1 year ago

-- was not a typo, but I tried with a single -

m4b-tool merge -vvv --debug --tag-debug-path=./debug/ --no-conversion --jobs=2 --output-file="output/" --batch-pattern="en/%g/%a - %n/" en --equate=name,album

Debug:

http://bashupload.com/z0zaO/debug.tgz mirror: https://we.tl/t-eCGrDSCPC5

|-- en
|   `-- psychology
|       `-- Paul\ Bloom\ -\ The\ Sweet\ Spot
|           |-- book.md
|           |-- book.yaml
|           |-- chapter_0.m4a
|           |-- chapter_1.m4a
|           |-- chapter_2.m4a
|           |-- chapter_3.m4a
|           |-- chapter_4.m4a
|           `-- cover.jpg
`-- output
    `-- psychology
        `-- Paul\ Bloom\ -\ The\ Sweet\ Spot
            `-- The\ Sweet\ Spot.m4b