Giter VIP home page Giter VIP logo

jellyfin-plugin-bookshelf's Introduction

Jellyfin Bookshelf Plugin

Part of the Jellyfin Project

Logo Banner

GitHub Workflow Status MIT License Current Release

About

The Jellyfin Bookshelf plugin enables the collection of eBooks & AudioBooks, with the latter being able to be played through Jellyfin.

Supported eBook file types

  • epub
  • mobi
  • pdf
  • cbz
  • cbr

Supported audio book file types

Please take in mind that this is not a complete list and represents some of the most commonly used formats.

  • mp3
  • m4a
  • m4b
  • flac

Offline Metadata providers

This plugin supports the following offline Metadata providers. These will check the local files for metadata.

The following limitations apply:

  • .cbr Comics tagged with ComicRacks ComicInfo format are partially supported. Any metadata within the comic book itself will be ignored while external metadata within a ComicInfo.xml file can be read.
  • The Advanced Comic Book Format is not supported.
  • The CoMet format is not supported.

Online Metadata providers

These Metadata providers will check online services for metadata.

  • Google Books
  • Comic Vine

To use the Comic Vine metadata provider, you will need to set an API key on the plugin's configuration page.

Build & Installation Process

  1. Clone this repository

  2. Ensure you have .NET Core SDK setup and installed

  3. Build the plugin with following command:

dotnet publish --configuration Release --output bin
  1. Place the resulting Jellyfin.Plugin.Bookshelf.dll file in a folder called plugins/ inside your Jellyfin installation / data directory.

jellyfin-plugin-bookshelf's People

Contributors

anthonylavado avatar bond-009 avatar carif avatar crobibero avatar delphiactual avatar dependabot[bot] avatar dkanada avatar h1dden-da3m0n avatar hamstercat avatar itegulov avatar j2ghz avatar jellyfin-bot avatar jose-pr avatar joshuaboniface avatar lalmanzar avatar lukepulverenti avatar o9r1sh avatar oddstr13 avatar pengwyns avatar pithaya avatar renovate[bot] avatar scottrapsey avatar shadowghost avatar snazy2000 avatar softworkz avatar speechles avatar svenvandenbrande avatar timhobbs avatar tolotos-rgu avatar wuyu8512 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jellyfin-plugin-bookshelf's Issues

OPF files being imported as a book in Jellyfin 10.6.1

When I create a book library and have Jellyfin 10.6.1 scan my books directory it is importing the metadata.opf files as if they are books. It never did this before. This is on a brand new library and new scan of the books directory. If you go in to the "book" it will let you try and download the metadata.opf file like it is a book you can download and read. It should be reading these opf files as the metadata they are, instead of thinking they are books.

89053895-82314200-d31d-11ea-9d08-5387b12732ea

Google Books NullReferenceException

Saw this scroll by in the logs – I have not looked more into it

ec 11 20:04:54 1070L jellyfin[24387]: [20:04:54] [ERR] MediaBrowser.Providers.Books.BookMetadataService: Error in Google Books
Dec 11 20:04:54 1070L jellyfin[24387]: System.NullReferenceException: Object reference not set to an instance of an object.
Dec 11 20:04:54 1070L jellyfin[24387]:    at Jellyfin.Plugin.Bookshelf.Providers.GoogleBooks.GoogleBooksProvider.FetchBookId(BookInfo item, CancellationToken cancellationToken)
Dec 11 20:04:54 1070L jellyfin[24387]:    at Jellyfin.Plugin.Bookshelf.Providers.GoogleBooks.GoogleBooksProvider.GetMetadata(BookInfo item, CancellationToken cancellationToken)
Dec 11 20:04:54 1070L jellyfin[24387]:    at MediaBrowser.Providers.Manager.MetadataService`2.ExecuteRemoteProviders(MetadataResult`1 temp, String logName, TIdType id, IEnumerable`1 providers, CancellationToken cancellationToken)
Dec 11 20:04:54 1070L jellyfin[24387]: [20:04:54] [DBG] MediaBrowser.Providers.Books.BookMetadataService: Running GoogleBooksImageProvider for /mnt/alvis/Media/Comics/Doctor Strange/Short Runs and Graphic Novels/Thanos (2002) - Infinity Abyss 04.cbz
Dec 11 20:04:54 1070L jellyfin[24387]: [20:04:54] [DBG] MediaBrowser.Providers.Books.BookMetadataService: Running EpubMetadataImageProvider for /mnt/alvis/Media/Comics/Doctor Strange/Short Runs and Graphic Novels/Thanos (2002) - Infinity Abyss 04.cbz
Dec 11 20:04:54 1070L jellyfin[24387]: [20:04:54] [ERR] MediaBrowser.Providers.Books.BookMetadataService: Error in Google Books
Dec 11 20:04:54 1070L jellyfin[24387]: System.NullReferenceException: Object reference not set to an instance of an object.
Dec 11 20:04:54 1070L jellyfin[24387]:    at Jellyfin.Plugin.Bookshelf.Providers.GoogleBooks.GoogleBooksProvider.FetchBookId(BookInfo item, CancellationToken cancellationToken)
Dec 11 20:04:54 1070L jellyfin[24387]:    at Jellyfin.Plugin.Bookshelf.Providers.GoogleBooks.GoogleBooksProvider.GetMetadata(BookInfo item, CancellationToken cancellationToken)
Dec 11 20:04:54 1070L jellyfin[24387]:    at MediaBrowser.Providers.Manager.MetadataService`2.ExecuteRemoteProviders(MetadataResult`1 temp, String logName, TIdType id, IEnumerable`1 providers, CancellationToken cancellationToken)
Dec 11 20:04:54 1070L jellyfin[24387]: [20:04:54] [DBG] MediaBrowser.Providers.Books.BookMetadataService: Running GoogleBooksImageProvider for /mnt/alvis/Media/Comics/Doctor Strange/Short Runs and Graphic Novels/Thanos (2002) - Infinity Abyss 05.cbr
Dec 11 20:04:54 1070L jellyfin[24387]: [20:04:54] [DBG] MediaBrowser.Providers.Books.BookMetadataService: Running EpubMetadataImageProvider for /mnt/alvis/Media/Comics/Doctor Strange/Short Runs and Graphic Novels/Thanos (2002) - Infinity Abyss 05.cbr

M4b audiobooks not playable via safari or IOS app

Bookshelf plug-in has been installed on Jellyfin Server running on Raspberry pi 4. Version 10.8.7

attempting to play audiobooks from IOS or web browser results in following error:

Playback Error
This client isn't compatible with the media and the server isn't sending a compatible media format.

Comic metadata isn't read from inside the file

It doesn't seem like Jellyfin is reading any of the ComicVine XML info like the docs say it should be. I have all my comic books tagged and they are not being picked up properly. Jellyfin is only showing the filename info and not pulling the covers.
I tagged all my stuff with Mylar3 and LazyLibrarian.
I see the xml file in the directory for the series and inside the CBZ files as well.

/mnt/storage/comics/DC Comics/Absolute Crisis On Infinite Earths (2005)/cvinfo
/mnt/storage/comics/DC Comics/Absolute Crisis On Infinite Earths (2005)/Absolute Crisis On Infinite Earths #1 (2005).cbz

I would upload the metadata files but GitHub won't let me.
Inside the cbz file is "ComicInfo.xml"

always fit to window / screen

hello, the comics player is almost great except it always fits the page only to the height of the screen.

it works fine when the screen is wider than the page, but when the page is wider than the screen it will be cropped, instead of reducing its height.

new release?

How about creating a new release with the changes since v9? #67 lists already a few nice changes which I would like to enjoy.
I tried compiling the plugin myself but it did not work inside jellyfin for some reason (probably a different .NET SDK or incompatible build settings).

App: Error in "Google Books"

Log spammed with

[2020-06-13 00:49:50.403 +03:00] [ERR] [67] App: Error in "Google Books"
System.NullReferenceException: Object reference not set to an instance of an object.
   at Jellyfin.Plugin.Bookshelf.Providers.GoogleBooks.GoogleBooksProvider.GetComparableName(String name)
   at Jellyfin.Plugin.Bookshelf.Providers.GoogleBooks.GoogleBooksProvider.FetchBookId(BookInfo item, CancellationToken cancellationToken)
   at Jellyfin.Plugin.Bookshelf.Providers.GoogleBooks.GoogleBooksProvider.GetMetadata(BookInfo item, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Manager.MetadataService`2.ExecuteRemoteProviders(MetadataResult`1 temp, String logName, TIdType id, IEnumerable`1 providers, CancellationToken cancellationToken)
[2020-06-13 00:49:55.757 +03:00] [ERR] [59] App: Error in "Google Books"
System.NullReferenceException: Object reference not set to an instance of an object.
   at Jellyfin.Plugin.Bookshelf.Providers.GoogleBooks.GoogleBooksProvider.FetchBookId(BookInfo item, CancellationToken cancellationToken)
   at Jellyfin.Plugin.Bookshelf.Providers.GoogleBooks.GoogleBooksProvider.GetMetadata(BookInfo item, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Manager.MetadataService`2.ExecuteRemoteProviders(MetadataResult`1 temp, String logName, TIdType id, IEnumerable`1 providers, CancellationToken cancellationToken)

System:

  • OS: Arch Linux
  • Virtualization: None
  • Clients: Browser
  • Browser: Firefox
  • Jellyfin Version: 10.5.5
  • Playback: Transcode
  • Installed Plugins: AudioDB, Bookshelf, Fanart, LDAP-Auth, MusicBrainz, Open Subtitles, Playback Reporting, Reports
  • Reverse Proxy: nginx
  • Base URL: none
  • Networking: NAT
  • Storage: local

Audio book media files ignored when cue file is present

When I add my audio book library, it sees the folders and cover image but when I try to play a book it is unable to. When I inspect the media, it shows the information for the cue file and not the audio.

Each folder contains a cue file with chapter information, a jpeg cover image, and m4b or mp3. Removing the cue file resolves this issue, but I lose chapter information.

Support tags from ComicInfo.xml

It looks like while Bookshelf supports reading genres from a ComicInfo.xml file, it doesn't support reading tags. Even though the Tags field is technically still in the draft v2.1 version, it's already supported by other programs like Komga. It would be great if Bookshelf could do the same. I can put up the PR for it, if this seems like a good idea.

Cannot read mobi books in browser?

When I scan, Jellyfin do find the book, but there is no "play" button to let me read this book. I am using jellyfin-web in chrome browser.

Is there a reason to not look for folder(s) inside CBR archive?

Hello, I normally don't make issues on GitHub, pardon my ignorance. When I was trying to load a CBR comic through Jellyfin, I never got past the loading animation.

When I dug around I discovered that when I unrar CBR file there was a folder with the images of the comic inside, so I rared the images, no folder, with CBR extension and Jellyfin was able to instantly load the comic, which is odd since it loads comics with .cbz extension that has a folder.

I never did a pull request, and figured maybe adding code to search for folder/files inside CBR archive would be simple enough for my first pull request.

But I wanted to ask if there a reason this hasn't been done already for CBR? Is it an underlying issue with RAR type archives?

Again, sorry for my ignorance.

Audio Books

Audio books are not recognized by jellyfin even when using this plugin.

Cover image not extracted from ePUB files

I have some books in ePUB format that bookshelf fails to load covers from. The name of the book loads as well as the publication year, but nothing else. I have confirmed that each book has a cover image in the PNG format tagged with the cover-image property. I have also confirmed that this is (probably) not a permissions issue as Jellyfin can read and display the ePUB file if I open it.

Normally providing one of the failing files would be difficult, but thankfully one of them is free. https://www.dragonsteelbooks.com/products/long-chills-and-case-dough-ebook

A (probably) relevant section of the Jellyfin log below:

[2024-01-14 23:18:38.601 -05:00] [ERR] [168] MediaBrowser.Providers.Books.BookMetadataService: Error in "Epub Metadata"
System.NotSupportedException: This stream from ZipArchiveEntry does not support reading.
   at System.IO.Compression.SubReadStream.ThrowIfCantRead()
   at System.IO.Compression.SubReadStream.ReadAsync(Memory`1 buffer, CancellationToken cancellationToken)
   at System.IO.Stream.<CopyToAsync>g__Core|29_0(Stream source, Stream destination, Int32 bufferSize, CancellationToken cancellationToken)
   at System.IO.Compression.DeflateStream.CopyToStream.CopyFromSourceToDestinationAsync()
   at Jellyfin.Plugin.Bookshelf.Providers.Epub.EpubMetadataImageProvider.LoadCover(ZipArchive epub, XmlDocument opf, String opfRootDirectory)
   at MediaBrowser.Providers.Manager.ItemImageProvider.RefreshFromProvider(BaseItem item, IDynamicImageProvider provider, ImageRefreshOptions refreshOptions, TypeOptions savedOptions, ICollection`1 downloadedImages, RefreshResult result, CancellationToken cancellationToken)
[2024-01-14 23:18:38.601 -05:00] [ERR] [164] MediaBrowser.Providers.Books.BookMetadataService: Error in "Epub Metadata"
System.NotSupportedException: This stream from ZipArchiveEntry does not support reading.
   at System.IO.Compression.SubReadStream.ThrowIfCantRead()
   at System.IO.Compression.SubReadStream.ReadAsync(Memory`1 buffer, CancellationToken cancellationToken)
   at System.IO.Stream.<CopyToAsync>g__Core|29_0(Stream source, Stream destination, Int32 bufferSize, CancellationToken cancellationToken)
   at System.IO.Compression.DeflateStream.CopyToStream.CopyFromSourceToDestinationAsync()
   at Jellyfin.Plugin.Bookshelf.Providers.Epub.EpubMetadataImageProvider.LoadCover(ZipArchive epub, XmlDocument opf, String opfRootDirectory)
   at MediaBrowser.Providers.Manager.ItemImageProvider.RefreshFromProvider(BaseItem item, IDynamicImageProvider provider, ImageRefreshOptions refreshOptions, TypeOptions savedOptions, ICollection`1 downloadedImages, RefreshResult result, CancellationToken cancellationToken)
[2024-01-14 23:18:38.601 -05:00] [ERR] [156] MediaBrowser.Providers.Books.BookMetadataService: Error in "Epub Metadata"
System.NotSupportedException: This stream from ZipArchiveEntry does not support reading.
   at System.IO.Compression.SubReadStream.ThrowIfCantRead()
   at System.IO.Compression.SubReadStream.ReadAsync(Memory`1 buffer, CancellationToken cancellationToken)
   at System.IO.Stream.<CopyToAsync>g__Core|29_0(Stream source, Stream destination, Int32 bufferSize, CancellationToken cancellationToken)
   at System.IO.Compression.DeflateStream.CopyToStream.CopyFromSourceToDestinationAsync()
   at Jellyfin.Plugin.Bookshelf.Providers.Epub.EpubMetadataImageProvider.LoadCover(ZipArchive epub, XmlDocument opf, String opfRootDirectory)
   at MediaBrowser.Providers.Manager.ItemImageProvider.RefreshFromProvider(BaseItem item, IDynamicImageProvider provider, ImageRefreshOptions refreshOptions, TypeOptions savedOptions, ICollection`1 downloadedImages, RefreshResult result, CancellationToken cancellationToken)
[2024-01-14 23:18:38.601 -05:00] [ERR] [169] MediaBrowser.Providers.Books.BookMetadataService: Error in "Epub Metadata"
System.NotSupportedException: This stream from ZipArchiveEntry does not support reading.
   at System.IO.Compression.SubReadStream.ThrowIfCantRead()
   at System.IO.Compression.SubReadStream.ReadAsync(Memory`1 buffer, CancellationToken cancellationToken)
   at System.IO.Stream.<CopyToAsync>g__Core|29_0(Stream source, Stream destination, Int32 bufferSize, CancellationToken cancellationToken)
   at System.IO.Compression.DeflateStream.CopyToStream.CopyFromSourceToDestinationAsync()
   at Jellyfin.Plugin.Bookshelf.Providers.Epub.EpubMetadataImageProvider.LoadCover(ZipArchive epub, XmlDocument opf, String opfRootDirectory)
   at MediaBrowser.Providers.Manager.ItemImageProvider.RefreshFromProvider(BaseItem item, IDynamicImageProvider provider, ImageRefreshOptions refreshOptions, TypeOptions savedOptions, ICollection`1 downloadedImages, RefreshResult result, CancellationToken cancellationToken)
[2024-01-14 23:18:38.601 -05:00] [ERR] [171] MediaBrowser.Providers.Books.BookMetadataService: Error in "Epub Metadata"
System.NotSupportedException: This stream from ZipArchiveEntry does not support reading.
   at System.IO.Compression.SubReadStream.ThrowIfCantRead()
   at System.IO.Compression.SubReadStream.ReadAsync(Memory`1 buffer, CancellationToken cancellationToken)
   at System.IO.Stream.<CopyToAsync>g__Core|29_0(Stream source, Stream destination, Int32 bufferSize, CancellationToken cancellationToken)
   at System.IO.Compression.DeflateStream.CopyToStream.CopyFromSourceToDestinationAsync()
   at Jellyfin.Plugin.Bookshelf.Providers.Epub.EpubMetadataImageProvider.LoadCover(ZipArchive epub, XmlDocument opf, String opfRootDirectory)
   at MediaBrowser.Providers.Manager.ItemImageProvider.RefreshFromProvider(BaseItem item, IDynamicImageProvider provider, ImageRefreshOptions refreshOptions, TypeOptions savedOptions, ICollection`1 downloadedImages, RefreshResult result, CancellationToken cancellationToken)
[2024-01-14 23:19:16.060 -05:00] [INF] [167] Emby.Server.Implementations.IO.LibraryMonitor: "Brandon Sanderson" ("/data/books/Books/Brandon Sanderson") will be refreshed.
[2024-01-14 23:19:16.060 -05:00] [INF] [167] Emby.Server.Implementations.IO.LibraryMonitor: "Long Chills and Case Dough" ("/data/books/Books/Brandon Sanderson/Long_Chills_and_Case_Dough_by_Brandon_Sanderson.epub") will be refreshed.
[2024-01-14 23:19:16.060 -05:00] [INF] [167] Emby.Server.Implementations.IO.LibraryMonitor: "The Frugal Wizard’s Handbook for Surviving Medieval England" ("/data/books/Books/Brandon Sanderson/The_Frugal_Wizard_s_Handbook_for_Surviving_Medieval_England_by_Brandon_Sanderson.epub") will be refreshed.
[2024-01-14 23:19:16.060 -05:00] [INF] [167] Emby.Server.Implementations.IO.LibraryMonitor: "The Sunlit Man" ("/data/books/Books/Brandon Sanderson/The_Sunlit_Man_by_Brandon_Sanderson.epub") will be refreshed.
[2024-01-14 23:19:16.060 -05:00] [INF] [167] Emby.Server.Implementations.IO.LibraryMonitor: "Tress of the Emerald Sea" ("/data/books/Books/Brandon Sanderson/Tress_of_the_Emerald_Sea_by_Brandon_Sanderson.epub") will be refreshed.
[2024-01-14 23:19:16.060 -05:00] [INF] [167] Emby.Server.Implementations.IO.LibraryMonitor: "Yumi and the Nightmare Painter" ("/data/books/Books/Brandon Sanderson/Yumi_and_the_Nightmare_Painter_by_Brandon_Sanderson.epub") will be refreshed.
[2024-01-14 23:22:38.633 -05:00] [INF] [114] Emby.Server.Implementations.IO.LibraryMonitor: "Brandon Sanderson" ("/data/books/Books/Brandon Sanderson") will be refreshed.

How to install bookshelf on windows10 's jellyfin

I downdload the *..shelf.dll and *.json from github.
I copy this two files to the jelllyfin's folder.

and I create the "plugins" folder, copy the two files to this folder.

Did I do this correctly?

Add plugable archive backend

Hi, thanks for the project.

I'm interested in adding support for a pluggable archive backend. One which can support cbr, cbz etc. At the moment this project only seems to support zipfiles (and variants of zips such as epub). The README mentions rar archives are supported but I'm not seeing any reference to cbr or rar so is this not correct.

See also: #23.

Unable to sort books by read order

Let's say I have books organized as /author/series/book/book.epub and the book folders are numbered so like "1 book a" "2 book b" "3 book c" there seems to be no way to get bookshelf/jellyfin to sort the books by read order, either by pulling the metadata from the books or by having the book folders numbered. When I sort by "folders" the books are in a completely random order that has no relation to the read order.

Error getting metadata

Once the library is managed, when manually indicating the search for new content, the log shows the following error

[2019-08-11 11:29:27.009 +02:00] [ERR] Error in "Open Packaging Format"
System.NullReferenceException: Object reference not set to an instance of an object.
   at Jellyfin.Plugin.Bookshelf.Providers.BookProviderFromOpf.ReadOpfData(MetadataResult`1 bookResult, String metaFile, CancellationToken cancellationToken)
   at Jellyfin.Plugin.Bookshelf.Providers.BookProviderFromOpf.GetMetadata(ItemInfo info, IDirectoryService directoryService, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Manager.MetadataService`2.RefreshWithProviders(MetadataResult`1 metadata, TIdType id, MetadataRefreshOptions options, List`1 providers, ItemImageProvider imageService, CancellationToken cancellationToken)

Book collections/series

It would be nice if Jellyfin read the metadata to see that a book is in a series and then could group all those books in to a book collection/series. Like all the Thomas Covenant books, all the Dune books, all the Xanth books. The metadata exists and it already tells you the order of the series as well.

Feature Request: Navigation improvements

The navigation is opaque at the moment. A lot of folks say "Oh I clicked on the book to open it but I only get the first page" and then stop there. At least have clickable arrows or some hint to the users that they need to use the left and right keys? :)

App: Error in "Open Packaging Format"

Log spammed with

[2020-06-13 00:54:15.085 +03:00] [ERR] [71] App: Error in "Open Packaging Format"
System.NullReferenceException: Object reference not set to an instance of an object.
   at Jellyfin.Plugin.Bookshelf.Providers.BookProviderFromOpf.ReadOpfData(MetadataResult`1 bookResult, String metaFile, CancellationToken cancellationToken)
   at Jellyfin.Plugin.Bookshelf.Providers.BookProviderFromOpf.GetMetadata(ItemInfo info, IDirectoryService directoryService, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Manager.MetadataService`2.RefreshWithProviders(MetadataResult`1 metadata, TIdType id, MetadataRefreshOptions options, List`1 providers, ItemImageProvider imageService, CancellationToken cancellationToken) in /mnt/AUR/jellyfin/src/jellyfin-10.5.5/MediaBrowser.Providers/Manager/MetadataService.cs:line 708
[2020-06-13 00:54:16.129 +03:00] [ERR] [50] App: Error in "Open Packaging Format"
System.NullReferenceException: Object reference not set to an instance of an object.
   at Jellyfin.Plugin.Bookshelf.Providers.BookProviderFromOpf.ReadOpfData(MetadataResult`1 bookResult, String metaFile, CancellationToken cancellationToken)
   at Jellyfin.Plugin.Bookshelf.Providers.BookProviderFromOpf.GetMetadata(ItemInfo info, IDirectoryService directoryService, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Manager.MetadataService`2.RefreshWithProviders(MetadataResult`1 metadata, TIdType id, MetadataRefreshOptions options, List`1 providers, ItemImageProvider imageService, CancellationToken cancellationToken) in /mnt/AUR/jellyfin/src/jellyfin-10.5.5/MediaBrowser.Providers/Manager/MetadataService.cs:line 708

System:

  • OS: Arch Linux
  • Virtualization: None
  • Clients: Browser
  • Browser: Firefox
  • Jellyfin Version: 10.5.5
  • Playback: Transcode
  • Installed Plugins: AudioDB, Bookshelf, Fanart, LDAP-Auth, MusicBrainz, Open Subtitles, Playback Reporting, Reports
  • Reverse Proxy: nginx
  • Base URL: none
  • Networking: NAT
  • Storage: local

Cover image not extracted from EPUB files

Bookshelf fails to extract the cover image from some books in the EPUB format. The name of the book as well as the description and other details gets loaded correctly though.

One of the books that cause this issue is https://www.feedbooks.com/book/1421/the-adventures-of-sherlock-holmes

Going into Jellyfin's metadata folder after the book is imported, I can see a poster.jpg file created that is not an image actually.

$ cat poster.jpg 
<?xml version="1.0" encoding="UTF-8" ?>

<!DOCTYPE html PUBLIC
     "-//W3C//DTD XHTML 1.1//EN"
     "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

  <head>
   <title>Cover</title>
   <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8"/>
  </head>
  
  <body>
    <div style="text-align: center; page-break-after: always;">
      <img src="images/cover.png" alt="Cover" style="height: 100%; max-width: 100%;" />
    </div>
  </body>

</html>

Screenshot from 2024-02-27 22-39-51

Allow customizing the ebook view

It would be nice if the ebook view had more options for visualization, for example setting the default font type and size, being able to customize the text and background color (for example for a "night mode"), or setting the default width of the page. Before using this plugin, I used to use the Nextcloud Files Reader, which does support all the settings I detailed above, and given that it's open-source it should be technically possible to integrate their settings in this app.

Google Books API Daily Limit Exceeded

When trying to refresh book metadata, received this in logs:

jellyfin_1  | [01:23:06] [ERR] Error in Google Books
jellyfin_1  | MediaBrowser.Model.Net.HttpException: Forbidden
jellyfin_1  |    at Emby.Server.Implementations.HttpClientManager.HttpClientManager.EnsureSuccessStatusCode(HttpResponseMessage response, HttpRequestOptions options)
jellyfin_1  |    at Emby.Server.Implementations.HttpClientManager.HttpClientManager.SendAsyncInternal(HttpRequestOptions options, HttpMethod httpMethod)
jellyfin_1  |    at Emby.Server.Implementations.HttpClientManager.HttpClientManager.SendAsync(HttpRequestOptions options, HttpMethod httpMethod)
jellyfin_1  |    at Jellyfin.Plugin.Bookshelf.Providers.GoogleBooks.GoogleBooksProvider.GetSearchResultsInternal(BookInfo item, CancellationToken cancellationToken)
jellyfin_1  |    at Jellyfin.Plugin.Bookshelf.Providers.GoogleBooks.GoogleBooksProvider.FetchBookId(BookInfo item, CancellationToken cancellationToken)
jellyfin_1  |    at Jellyfin.Plugin.Bookshelf.Providers.GoogleBooks.GoogleBooksProvider.GetMetadata(BookInfo item, CancellationToken cancellationToken)
jellyfin_1  |    at MediaBrowser.Providers.Manager.MetadataService`2.ExecuteRemoteProviders(MetadataResult`1 temp, String logName, TIdType id, IEnumerable`1 providers, CancellationToken cancellationToken)

When trying to run a basic search against the google books api in the browser using the keys and info in ApiUrls.cs, got this:

{
 "error": {
  "errors": [
   {
    "domain": "usageLimits",
    "reason": "dailyLimitExceeded",
    "message": "Daily Limit Exceeded. The quota will be reset at midnight Pacific Time (PT). You may monitor your quota usage and adjust limits in the API Console: https://console.developers.google.com/apis/api/books.googleapis.com/quotas?project=75039668320",
    "extendedHelp": "https://console.developers.google.com/apis/api/books.googleapis.com/quotas?project=75039668320"
   }
  ],
  "code": 403,
  "message": "Daily Limit Exceeded. The quota will be reset at midnight Pacific Time (PT). You may monitor your quota usage and adjust limits in the API Console: https://console.developers.google.com/apis/api/books.googleapis.com/quotas?project=75039668320"
 }
}

Possible solution might be an option for the user to provide their own API key to google books api.

Feature Request: zip support.

Currently, the plugin allows Jellyfin to add support for the following ebook formats:

epub
mobi
pdf
cbz
cbr

Would be nice if zip is added as well. Both cbz and cbr are like zip files, so adding zip support could be relatively easy.

Thanks in advance, good day.

Page numbers, reading progress and saving position

I'm very excited about jellyfin being able to handle ebooks. I think the biggest missing feature for me is being able to keep track of how far into a book I already am, and resuming from that position next time I open it

Support epub metadata

pls add the ability to read the metadata from epub files. maybe as a new Provider?

all my selfmade and bought books have metadata and cover embedded

thx :)

Book author information

It would be nice if Jellyfin could pull in from Goodreads or Wikipedia information about the author and display it when you are showing all the books by a specific author along with a picture of the author.

AAX Support?

Is there any way to get support for .aax files added?

Feature Request: Google Books id in file name

It would be nice to be able to provide a google books id in the filename like it is possible with tmdb in movies.
for examble i could add the file
why_we_sleep [googlebooksid-ZlU3DwAAQBAJ].pdf
and it automatically knows all the metadata it can fetch from google books

CB7 support

Jellyfin doesn't pick up CB7 files which it should since 7zip is open source and a great compression program for comic books.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.