janeczku / calibre-web

:books: Web app for browsing, reading and downloading eBooks stored in a Calibre database
GNU General Public License v3.0
11.99k stars 1.28k forks source link

CB7 metadata extraction not working #3050

Open OzzieIsaacs opened 1 month ago

OzzieIsaacs commented 1 month ago

Describe the bug/problem

After uploading a CB7 file, no metadata of the file gets extracted and the standard cover file is used instead of the cover file from the comic book. After downgrading py7zr to 0.20.8 the metadata import is working as it should

To Reproduce

Steps to reproduce the behavior (have py7zr and optoinal comicapi installed):

  1. Go to main page
  2. Click on upload file
  3. choose a CB7 file and upload it
  4. See error in detail page: Metadata is taken from filename and standard cover is visible

Logfile [2024-05-09` 08:36:51,775] ERROR {comicapi.comicarchive:392} Error reading in raw CIX! for /tmp/calibre_web/2175f45e686d3a93be4bb0d4b91ff6bf: 'ComicInfo.xml' [2024-05-09 08:36:51,777] ERROR {comicapi.comicarchive:222} Error reading in page 0. Substituting logo page. Expected behavior

Comic metadata (as cover file and author, title information) is visible in calibre-web

Environment (please complete the following information):

Additional context py7zr is on version 0.21.0

This issue is fixed in latest nightly version without comicapi, a fix is available in the comicapi repository (https://github.com/comictagger/comictagger/blob/develop/comicapi/archivers/sevenzip.py), but byet not published. Workaround is downgrading py7zr to 0.20.8 or below