Closed andrewgdunn closed 1 year ago
Adding: When using the embed metadata feature the UI reports success but errors in the console (for this same issue).
Maybe a suggestion is to just ignore the description field when attempting to interact with metadata?
Just looking for more test cases I think it's clearly an escape character issue:
This is the exact payload for the description field:
"I gulped down Ballistic in one long read, staying awake half the night, and now I want the next one!" (George R. R. Martin) There is a personal price to pay for having aligned with the wrong side in a reckless war. For Aden Jansen it's the need to adopt a new identity while keeping his past hidden. Now he's integrated himself aboard the Zephyr, a merchant ship smuggling critical goods through dangerous space. But danger is imminent on planet Gretia, as well. Under occupation, torn between postwar reformers and loyalists, it's a polestar for civil unrest. Meanwhile an occupation forces officer is pulled right back into the fray when the battle alarm is raised, an ambitious heiress is entangled in a subversive political conspiracy, and an Allied captain is about to meet the enemy head-on. As Aden discovers, the insurgents on Gretia - and in space - are connected, organized, and ready to break into full-scale rebellion. History is threatening to repeat itself. It's time that Aden rediscovers who he is, whom he can trust, and what he must fight for now.
Here is the error:
[2022-10-04 17:02:36] ERROR: [toneHelpers] tagAudioFile: Failed for "/audiobooks/Kloos, Marko/Palladium Wars/Book 2 - Ballistic (2020)/Marko Kloos - The Palladium Wars, Book 2 - Ballistic.m4b" Error: Could not find file '/(George R. R. Martin) There is a personal price to
pay for having aligned with the wrong side in a reckless war. For Aden Jansen
it's the need to adopt a new identity while keeping his past hidden. Now he's
integrated himself aboard the Zephyr, a merchant ship smuggling critical goods
through dangerous space. But danger is imminent on planet Gretia, as well. Under
occupation, torn between postwar reformers and loyalists, it's a polestar for
civil unrest. Meanwhile an occupation forces officer is pulled right back into
the fray when the battle alarm is raised, an ambitious heiress is entangled in a
subversive political conspiracy, and an Allied captain is about to meet the
enemy head-on. As Aden discovers, the insurgents on Gretia - and in space - are
connected, organized, and ready to break into full-scale rebellion. History is
threatening to repeat itself. It's time that Aden rediscovers who he is, whom he
can trust, and what he must fight for now.'.
It seems as if many of audibles descriptions have quotes in them.
Yeah this is most certainly an issue of escaping the quotes. Thanks for the test data
I've been testing this and it is specific to the first character being a double quote.
Currently we are using nodes child_process to call the tone CLI. By default the child_process is escaping the arguments automatically which can be disabled but I'm not sure we want to do that. Abs is using the node-tone package I wrote to make calls to tone CLI.
I wasn't able to find a quick fix or workaround unfortunately.
So, I didn't get to test it, but does M4B have a limit for the comment field? I believe the implementation in Abs right now combines both Comment and Description so you could potentially get a 2x depending on how you scraped metadata.
Would a "fix" for now be to just not attempt to embed the Comment and Description in the M4B?
I'm not sure about character limits but that would be good to lookup. This issue is definitely the double quote at the beginning and not the character limit. I used Comment and Description so we could use the same object when embedding into mp3 and m4b. That can be updated to use either or but I'm not sure it matters that much.
Describe the issue
The ability to match then M4B encode is incredible.
I'm running into an issue when using the M4B encoder that looks like this:
I believe this could be manifesting from a couple things:
"
escaped properly, or other special characters?Steps to reproduce the issue
Audiobookshelf version
v2.2.0
How are you running audiobookshelf?
Docker