jellyfin / jellyfin-plugin-bookshelf

https://jellyfin.org
MIT License
212 stars 20 forks source link

Improve cover image extraction from epub files #102

Closed unfedorg closed 5 months ago

unfedorg commented 5 months ago

This is to improve the cover image extraction from the epub file.

I have 754 epub files under Jellyfin management and only 5 of them have cover image correctly extracted. With below 3 improvements, all 754 files can be processed well.

  1. Treat calibre:series_index as Double before converting to Int32.
  2. Accept empty opfRootDirectory.
  3. Improve xPath for cover image object finding.

More details can be found at https://github.com/jellyfin/jellyfin-plugin-bookshelf/issues/100#issuecomment-2054013821