Closed Ziang-Liu closed 9 months ago
it depends whether the book is images only or not. Does the book have text ? If yes then Komga will not serve pages as images.
The body tag only contains image relative path links without include any text from the HTML content of the epub. Here is a single page example:
<!DOCTYPE html SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>第 5 頁</title>
<link rel="stylesheet" type="text/css" href="../css/style.css"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<body>
<div class="fs">
<div>
<img src="../image/moe-004976.jpg" alt="Comic Book Images" class="singlePage" />
</div>
</div>
</body>
</html>
can you share the book file ?
Sure, I‘ve uploaded the file at first.(●'◡'●) Here:
Thanks, i didn't see it before.
I tested and it works as expected for me. Maybe that book was analyzed when the feature for divina compatibility for epub was not there yet.
Can you try to analyze that book again on your side and see if it uses the Divina reader ?
I haven't considered this method yet... Now the manga can be opened correctly c:
I have a little suggestion: Maybe the official docs can add some instructions for those migrated from old versions in case of compatibility issues.
Steps to reproduce
Expected behavior
The content within the pages of the EPUB should be displayed.
Actual behavior
A blank page will be displayed like this.
Logs
Komga version
1.10.3
Operating system
Slackware 15.0 x86_64
Installation method
Docker
Other details
Some research:
I identified the corresponding function "getPageContent" based on the error log, and then I located the return value "epubDivinaCompatible" of "Media" within the function "analyzeEpub". Then I check the function "getManifest" within the class "EpubExtractor" and found private function "getDivinaPages" used by dictionary value "divinaPages", which seems to be the cause of the issue as it is returning an empty list. (I haven't fully grasped the logic behind divinaPage determination, and I also haven't configured the Kotlin environment, which hinders me from further debugging. My apologies for this inconvenience.)
fun getPageContent
: BookAnalyzer.ktfun getManifest
: EpubExtractor.ktTest epub file (compressed):
test epub.zip
Screenshots:
Acknowledgements