Closed steve1977 closed 3 years ago
Also, the book summary starts and ends with "
" in Komga.
Can you clarify this part? Does it start and end with a "
character, or with a newline?
Can you get the raw json object from /api/v1/series/<seriesId>
so it's clearer to me?
The description field in your epub contains html <div><p>
which may be the problem.
Here we go: https://pastebin.com/BZRaHEJv
Oh, sorry... The comment was incomplete. It starts with <div> <p>
and it ends with </p></div>
.
I pulled another ebook and this one starts with <div><div><font face="MS Shell Dlg 2, sans-serif"><span style="font-size: 14px;">
.
All my comics (crz) show well, but my calibre tagged epub3 files do not.
Oh... Not sure why, but my comments don't show up. Let me try without the "" below:
Doesn't work. See on pastebin: https://pastebin.com/CTiZGL2B
All my comics (crz) show well, but my calibre tagged epub3 files do not.
Can you clarify what "show well" means for you? Are you referring to the newline character?
Can you take a screenshot and post it here?
Oh... Not sure why, but my comments don't show up. Let me try without the "" below:
You need to enclose html inside backticks "`" so they get rendered properly.
Comics (cbz): Collection is identified from tag and I can sort comics by the collection. When selecting an individual comic file, it show on the top the collection and then the title. And underneath it shows the summary for the comics. And yet underneath it shows the writers, pencillers, etc. All nice and perfect!
Ebooks (epub): The series is not picked up from tag, but it uses the folder name instead. Also, the summary of the book doesn't show up nicely, but has some <<>> things (see above). And the title image also doesn't show up. And for some ebooks, the authors are shown as two pieces. Will upload screenshots.
The one we are troubleshooting so far.
Another one with similar issue including a wrongly picked up writers (should be "Christian Kracht" instead of "Christian" and "Kracht" as two writers.
the title image also doesn't show up
What does that mean exactly?
wrongly picked up writers (should be "Christian Kracht" instead of "Christian" and "Kracht" as two writers.
Can you post the opf file for that book?
the title image also doesn't show up
What does that mean exactly?
The cover image of the ebook. You will see this from the two screenshots. The title page of the book doesn't show, but instead some other photo. Do you know what I mean?
the title image also doesn't show up
What does that mean exactly?
The cover image of the ebook. You will see this from the two screenshots. The title page of the book doesn't show, but instead some other photo. Do you know what I mean?
Is that a ebook or a comic? Komga doesn't handle ebooks, only comics in epub format, meaning only images are processed.
wrongly picked up writers (should be "Christian Kracht" instead of "Christian" and "Kracht" as two writers.
Can you post the opf file for that book?
Here we go with the embedded file attached (not the one in the same folder, but the one that is embedded in the epub file).
I had to zip it up for GH to allow me to upload it.
the title image also doesn't show up
What does that mean exactly?
The cover image of the ebook. You will see this from the two screenshots. The title page of the book doesn't show, but instead some other photo. Do you know what I mean?
Is that a ebook or a comic? Komga doesn't handle ebooks, only comics in epub format, meaning only images are processed.
It's an ebook. I am not planning to use Komga as a reader, so I'd assume it should handle even ebooks fine for me (in epub3 formats with tags?). The epub file includes a title page as cover.jpeg. Also attaching this below (embedded from the epiub file).
wrongly picked up writers (should be "Christian Kracht" instead of "Christian" and "Kracht" as two writers.
Can you post the opf file for that book?
Here we go with the embedded file attached (not the one in the same folder, but the one that is embedded in the epub file).
I had to zip it up for GH to allow me to upload it.
You may have posted the wrong one, this seems to be the first one in your screenshots where the author is Ulf Blank and correctly shows as per your screenshot.
the title image also doesn't show up
What does that mean exactly?
The cover image of the ebook. You will see this from the two screenshots. The title page of the book doesn't show, but instead some other photo. Do you know what I mean?
Is that a ebook or a comic? Komga doesn't handle ebooks, only comics in epub format, meaning only images are processed.
It's an ebook. I am not planning to use Komga as a reader, so I'd assume it should handle even ebooks fine for me (in epub3 formats with tags?). The epub file includes a title page as cover.jpeg. Also attaching this below (embedded from the epiub file).
Without the opf file I can't say which image will be picked up as the cover.
wrongly picked up writers (should be "Christian Kracht" instead of "Christian" and "Kracht" as two writers.
Can you post the opf file for that book?
Here we go with the embedded file attached (not the one in the same folder, but the one that is embedded in the epub file). I had to zip it up for GH to allow me to upload it. content.zip
You may have posted the wrong one, this seems to be the first one in your screenshots where the author is Ulf Blank and correctly shows as per your screenshot.
Ah. i thought you were asking for the first one. The first one has 3 issues:
1) Series not picked up 2) <<>> thing at summary 3) Title photo not picked up (I posted the embedded jpeg as well
I can also post the opf file of the second. The second is not part of a series, so this issue wouldn't happen. It also has the <<> issue, the title photo missing, and a "split writer" (you had seen the screenshot).
Let me find the opf file and post it here.
Attached the opf file of the 2nd file. Issue may be because this one is epub2 rather than epub3? The first one is epub3 though...
I am attaching in zip the embedded opf and jpg.
Attached the opf file of the 2nd file. Issue may be because this one is epub2 rather than epub3? The first one is epub3 though...
I am attaching in zip the embedded opf and jpg.
For this book, could you provide the content of titlepage.xhtml
? Komga has to parse the HTML pages to find images inside. I checked an epub2 i have, and it seems it's using a <svg><image>
instead of a plain HTML <img>
tag, which throws the parser off. I'd like to confirm that's the same for your book.
Thanks. The title page exists with both books (pls see the two screenshots). And as requested, please see below the file for the second book (epub2).
Thanks. The title page exists with both books (pls see the two screenshots). And as requested, please see below the file for the second book (epub2).
Thanks, it looks the same as the one I have, which confirms my hypothesis.
Great, thanks! Also found what's going on with the series tag?
Great, thanks! Also found what's going on with the series tag?
Yes I mentioned it above, the xml name spacing is different in the files generated by calibre than the ones I had before. It's valid xml but the parser is not configured properly for that.
The authors were also split by comma, but doesn't make sense since epub can have one tag per author, so splitting is unnecessary, and can have this side effect.
I need to add unit tests, as that part of the code doesn't have one, and do all the fixes.
For the html tags in the description I have to try and test. I need to strip them away.
I've pushed a lot of changes regarding epub handling:
opf:
prefix added by Calibre could mess up the parser, it was happening for different elements or attributes.,
anymoreisbn:xxxxxxxxxx
which would not be parsed. This is fixed.<svg><image>
tag, they would not be detected. This is fixed.Once the release is out and after you update, you will need to:
:tada: This issue has been resolved in version 0.100.2 :tada:
The release is available on:
v0.100.2
Your semantic-release bot :package::rocket:
Thanks for the development and fix. This is great!
Both ebooks seem to work now. However, other epub3 files with series tag (belongstocollection) still do not work and still show under the folder name. I analyzed and refreshed (and even newly added), but all without success.
Shall I open a new ticket and provided xml data?
Shall I open a new ticket and provided xml data?
Yes please. You can post here, I reopened the issue.
Here is the embedded metadata file as attachment
And a separate issue: "number of pages" does not display correctly for the second book that I had originally posted (and also not for the one just posted now). I don't mind too much if that's not possible, but thought worth reporting.
And a separate issue: "number of pages" does not display correctly for the second book that I had originally posted (and also not for the one just posted now). I don't mind too much if that's not possible, but thought worth reporting.
Number of pages will only show number of images, so will most likely always be wrong for ebooks. There's no plan to fix it for now. If ebook support (#221) ever lands, then it would be handled.
Here is the embedded metadata file as attachment
That's the first book you posted, it's what I used for the unit tests. The series name is properly retrieved : https://github.com/gotson/komga/blob/7910273dfcbb7e2b61852d99f4efe17f7e8d6f21/komga/src/test/kotlin/org/gotson/komga/infrastructure/metadata/epub/EpubMetadataProviderTest.kt#L110
Thanks. Don't worry about the number of pages. Not important for me.
It shows correctly for the first book I posted. The third (posted today) was tagged the same way and also have the same series tag, but doesn't seem to be picked up. It's listed under "Die Drei Fragezeichen-Kids, Bd.3, Invasion Der Fliegen (247)" instead of "Die drei ??? Kids".
How are those books organized on disk?
The third (posted today) was tagged the same way and also have the same series tag, but doesn't seem to be picked up.
Sorry about that, i was looking at the wrong file (on my phone). I am running that last book you posted through tests now.
It's fixed, i also found a couple more bugs thanks to your file.
Amazing, thanks a lot! Will keep troubleshooting with my library whether anything else. And then the next step is to figure out how to have Calibre change the title of the book.
:tada: This issue has been resolved in version 0.100.3 :tada:
The release is available on:
v0.100.3
Your semantic-release bot :package::rocket:
Thanks. Yes. But I'd like to show the title as "series [series number]". There is some way to do this with Calibre, which I need to figure out. But this shoudl be handled with Calibre rather than Komga.
I will do some testing with the new fix later tonight.
I've given it a go with a refresh / analyze. Unfortunately, it is still not yet working as I would have hoped. It seems that the "series" is now shown ("Die Drei ??? Kids" in this example). The overview list ("browse") shows the individual books (all called "Die Drei ??? KIds", but don't group them as one "series". Anything I can provide for trouble-shooting?
I've given it a go with a refresh / analyze. Unfortunately, it is still not yet working as I would have hoped. It seems that the "series" is now shown ("Die Drei ??? Kids" in this example). The overview list ("browse") shows the individual books (all called "Die Drei ??? KIds", but don't group them as one "series". Anything I can provide for trouble-shooting?
That's a different thing entirely. Because you are using Calibre, the books are in their own folder. But Komga expects books of the same series in the same folder. That's a basic tenet of Komga.
If you want to show books of the same series in the same series, you need to move your files to the same folder. Calibre unfortunately is not flexible at all with the folder structure, so using a Calibre library folder in Komga will not render nicely, and will duplicate series.
Got it. So, one work-around could be to copy them all into one folder. They could no longer be read with Calibre, but I could then edit the tags via Komga (after doing the initial tag with Calibre). This could work, right?
What about if I place two ebooks from different series or from without a series tag into the same folder? Will this split them?
Got it. So, one work-around could be to copy them all into one folder. They could no longer be read with Calibre, but I could then edit the tags via Komga (after doing the initial tag with Calibre). This could work, right?
yes, that would work.
What about if I place two ebooks from different series or from without a series tag into the same folder? Will this split them?
No, the metadata import rules will apply, especially: "if multiple books have the property belongs-to-collection
set, the most frequent value will be used"
Moving from Discord to GH request as you had suggested.
I have embedded metadata in my epub3 files that are being created by Calibre. Calibre developer claims to comply to epub3 specifications.
As shared over Discord, the series tag is not picked up by Komga. Also, the book summary starts and ends with
<div> <p>
in Komga.Below the full opf content for your info.