Ebook and Audiobook

All your suggestions, requests and ideas for future development
Post Reply
devster
Posts: 417
Joined: 06 Jun 2017, 22:56

Ebook and Audiobook

Post by devster »

Would there be interest for ebook/audiobook support?
The obvious APIs are from Goodreads https://www.goodreads.com/api and Amazon.
Both support ebooks and audiobooks (albeit in different ways), and FileBot already has support for audio files.
Both Kodi and Plex support Audiobooks as long as they're properly tagged (ID3 and such).
Some people have already done some work on how to tag them: https://www.blisshq.com/music-library-m ... udiobooks/ and https://www.reddit.com/r/PleX/comments/ ... eo_podcast (at the end).
Kodi natively supports audiobooks https://kodi.wiki/view/Audiobooks.
There are also Metadata agents for Plex and Kodi (albeit user-supported in most cases).

I realize most of this focuses on audiobooks, and this is indeed the main gap, ebooks are nicely covered by calibre.
Given the fact that the databases suggested also provide information for ebooks it may be a nice added bonus (with a standalone cops server for example).
I only work in black and sometimes very, very dark grey. (Batman)
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Ebook and Audiobook

Post by rednoah »

I don't even have a single audiobook file, so it'd be hard for me to test and develop a such a feature.

--db ID3 should somewhat cover it, assuming all the information you want to use is already in the file and can be read via MediaInfo bindings.

ebooks can be handled to some degree in --db file plain file mode. But reading tags from within format code is not convenient, unless ebook tags are somehow easy to read.



:idea: I've added *.mka to the list of audio file extensions.


:idea: My take away is that at least audio books are already handled fine, by treating them like any other audio file, except you need to painstakingly tag them first.

:!: The problem here is tagging. Even if FileBot can match a given file to some audio book database, and organize the files in a standardized way, it still wouldn't work in Plex / Kodi / etc, because those tools expect tagged files. ID3 is pretty easy. MP4 is tricky. MKV is tricky. FileBot doesn't even support tagging for video files, because it's dangerous and inconsistent.

:idea: A dedicated groovy script would certainly be a possible first step to explore and evaluate. I'd need some test data for that though.
:idea: Please read the FAQ and How to Request Help.
cheaters
Posts: 214
Joined: 09 Oct 2016, 02:01

Re: Ebook and Audiobook

Post by cheaters »

`exiftool' will provide metadata for .epub.

:?: Regardless of renaming... how does one move a file that has a certain tag to a different directory if it is not a movie, series, music?

Right now software, eBooks, and audiobooks all get sent to my "Unsorted" directory.

:?: Are there options like these:

Code: Select all

--def ebook=y
--def audiobook=y
--def software=y
:idea: exiftool output of an .epub file

Code: Select all

File Name                       : Idiot's Guides High Intensity Interval Training By Sean Bartram.epub
Directory                       : /Users/john/Library/Mobile Documents/com~apple~CloudDocs/Books/Idiot's Guides High Intensity Interval Training By Sean Bartram
File Size                       : 74 MiB
File Modification Date/Time     : 2022:04:03 00:33:36-05:00
File Access Date/Time           : 2022:05:18 14:01:37-05:00
File Inode Change Date/Time     : 2022:05:18 14:17:32-05:00
File Permissions                : -rw-r--r--
File Type                       : EPUB
File Type Extension             : epub
MIME Type                       : application/epub+zip
Meta Id                         : isbn
Meta Property                   : dcterms:identifer
Meta                            : urn:uuid:9781615647491
Title Id                        : t1
Title (en-GB)                   : High Intensity Interval Training
Language                        : en-US
Identifier Id                   : uid
Identifier                      : 9781615647491
Meta Refines                    : #uid
Meta Scheme                     : xsd:string
Creator Id                      : creator01
Creator                         : Sean Bartram
Rights                          : Copyright © 2015 by Penguin Random House LLC
Meta Content                    : cover-image
Meta Name                       : cover
Description Xmlns               : http://purl.org/dc/elements/1.1/
Description                     : Blah, blah blah
Publisher Xmlns                 : http://purl.org/dc/elements/1.1/
Publisher                       : DK Publishing
Manifest Item Href              : xhtml/cover.xhtml
Manifest Item Id                : cover-001
Manifest Item Media-type        : application/xhtml+xml
Manifest Item Properties        : nav
Spine Page-progression-direction: ltr
Spine Toc                       : ncx
Spine Itemref Idref             : cover-001
Spine Itemref Linear            : yes
Guide Reference Href            : xhtml/cover.xhtml
Guide Reference Title           : Cover
Guide Reference Type            : cover
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Ebook and Audiobook

Post by rednoah »

You can use a custom --def unsortedFormat for dealing with unsorted files.


e.g. default unsorted format:

Code: Select all

--def unsortedFormat="Unsorted/{f.structurePathTail}"

:arrow: Use Plain File Mode to prototype your plain file format in the GUI first.
:idea: Please read the FAQ and How to Request Help.
Post Reply