[Bug]:Incorrect parsing of metadata #2618

Open
opened 2026-04-25 00:09:03 +02:00 by adam · 7 comments
Owner

Originally created by @Cotignac on GitHub (Feb 26, 2025).

What happened?

I'm using an application on my Mac called Calibre for adding metadata to my E-books. The reason is that Calibre can download metadata from Google and also Amazon. The result is stored in a catalogue that ABS have access to.

Anyway, a few ABS releases ago that worked good when it comes the parsing of the metadata. But with the latest releases it seems like the handling of paragraphs isn't parsed properly. In the pictures included you can see how the e-book looks like in Calibre and also how it ends up in ABS.

Wouldn't it be great if the parsing of metadata in ABS could store the description as proper HTML and show it the way it was originally written?

Image Image Image

What did you expect to happen?

When I try to edit the text it isn't even possible to see where the paragraphs starts and ends so it's hard to correct it. The second of the pictures will show you how i hoped it would look after the import. Preferable with the text in the last paragraph in italic.

Image Image

Steps to reproduce the issue

Audiobookshelf version

2.19.5

How are you running audiobookshelf?

Docker

What OS is your Audiobookshelf server hosted from?

Linux

If the issue is being seen in the UI, what browsers are you seeing the problem on?

Edge

Logs


Additional Notes

No response

Originally created by @Cotignac on GitHub (Feb 26, 2025). ### What happened? I'm using an application on my Mac called Calibre for adding metadata to my E-books. The reason is that Calibre can download metadata from Google and also Amazon. The result is stored in a catalogue that ABS have access to. Anyway, a few ABS releases ago that worked good when it comes the parsing of the metadata. But with the latest releases it seems like the handling of paragraphs isn't parsed properly. In the pictures included you can see how the e-book looks like in Calibre and also how it ends up in ABS. Wouldn't it be great if the parsing of metadata in ABS could store the description as proper HTML and show it the way it was originally written? <img width="346" alt="Image" src="https://github.com/user-attachments/assets/5c95ab1a-875b-4730-bc9e-3a61f3177d0c" /> <img width="385" alt="Image" src="https://github.com/user-attachments/assets/6ca7385b-95d6-41cc-9657-f25975a7f669" /> <img width="1151" alt="Image" src="https://github.com/user-attachments/assets/26855ab3-821a-4dd7-87ae-86a94b7b85ed" /> ### What did you expect to happen? When I try to edit the text it isn't even possible to see where the paragraphs starts and ends so it's hard to correct it. The second of the pictures will show you how i hoped it would look after the import. Preferable with the text in the last paragraph in italic. <img width="776" alt="Image" src="https://github.com/user-attachments/assets/4cdb125f-2178-4f8b-93b7-2873047d65b2" /> <img width="1166" alt="Image" src="https://github.com/user-attachments/assets/45fb3c22-2029-4672-88d8-f5c0b21cd5c1" /> ### Steps to reproduce the issue 1. ### Audiobookshelf version 2.19.5 ### How are you running audiobookshelf? Docker ### What OS is your Audiobookshelf server hosted from? Linux ### If the issue is being seen in the UI, what browsers are you seeing the problem on? Edge ### Logs ```shell ``` ### Additional Notes _No response_
adam added the bugwaiting labels 2026-04-25 00:09:03 +02:00
Author
Owner

@Cotignac commented on GitHub (Feb 26, 2025):

I have to add that the metadata is stored in an OPF-file in the same folder as the EPUB-file.

@Cotignac commented on GitHub (Feb 26, 2025): I have to add that the metadata is stored in an OPF-file in the same folder as the EPUB-file.
Author
Owner

@Cotignac commented on GitHub (Feb 26, 2025):

Image

It wasn't possible to write this as text since it was interpreted so I had to make a screen dump. ;-)

@Cotignac commented on GitHub (Feb 26, 2025): <img width="823" alt="Image" src="https://github.com/user-attachments/assets/3ac05372-b23c-40d1-97af-2646f3f20897" /> It wasn't possible to write this as text since it was interpreted so I had to make a screen dump. ;-)
Author
Owner

@advplyr commented on GitHub (Feb 27, 2025):

Can you share the opf file? Is it storing HTML in the description?

@advplyr commented on GitHub (Feb 27, 2025): Can you share the opf file? Is it storing HTML in the description?
Author
Owner

@Cotignac commented on GitHub (Feb 27, 2025):

metadata (kopia)_opt.txt

This is the file with the extension .txt.

@Cotignac commented on GitHub (Feb 27, 2025): [metadata (kopia)_opt.txt](https://github.com/user-attachments/files/18999146/metadata.kopia._opt.txt) This is the file with the extension .txt.
Author
Owner

@Cotignac commented on GitHub (Feb 27, 2025):

Just so that you know. I changed the extension to make it possible to upload it. ;-)

@Cotignac commented on GitHub (Feb 27, 2025): Just so that you know. I changed the extension to make it possible to upload it. ;-)
Author
Owner

@Cotignac commented on GitHub (Apr 28, 2025):

Any idea when you will be able to correct this? Will it ever be corrected...?

@Cotignac commented on GitHub (Apr 28, 2025): Any idea when you will be able to correct this? Will it ever be corrected...?
Author
Owner

@Cotignac commented on GitHub (Jun 2, 2025):

Can you please do something about this?

It's really irritating the way it is now. I've got several hundred e-books and every time I add another book and rescan the library in ABS the manual edited information I have of the other books are destroyed because the metadata is not handled correctly.

@Cotignac commented on GitHub (Jun 2, 2025): Can you please do something about this? It's really irritating the way it is now. I've got several hundred e-books and every time I add another book and rescan the library in ABS the manual edited information I have of the other books are destroyed because the metadata is not handled correctly.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#2618