Giter Site home page Giter Site logo

Comments (8)

Kudjo-Grand avatar Kudjo-Grand commented on June 10, 2024 1

Looks like the chapter logic might need a little tweak.

I have multiple books in the "Mistborn Series" 'Book'. (I had it organized this way before I found your application and will consider changing it later).

However, the chapters detected are each entire book, instead of the chapters for EACH book file.
image

Here is the file structure on disk:
image

And how it appears in AudioBookShelf:
image

from audiobookshelf.

advplyr avatar advplyr commented on June 10, 2024

I've been looking into this because I thought it would be useful to be able to look at and skip to chapters from the audiobook player. I think this is an important feature, and for the downloader to merge audio files into an m4b with chapters shouldn't be a problem.

Some audiobooks have multiple introductions or even interludes between chapters. In these cases I think it will be useful to add a field in the track editor where you can name the chapter yourself.

By default they would be named:

Chapter 1
Chatper 2
etc..

But you may want to name them like

Preface
Introduction
Chapter 1
etc..

For audiobooks that already have chapters named, the player would use those names. Maybe in the future editing already made M4B audiobooks could be possible as well.

Great suggestion! I'm thrilled that this is providing value for you.

from audiobookshelf.

advplyr avatar advplyr commented on June 10, 2024

The first version of chapter support is live in v1.1.1

When the audiobook is scanned it attempts to get chapters from the file. If no chapters are found and the audiobook has multiple tracks then chapters will be created using the tracks.

If an audiobook has chapters you can jump to each chapter from the player. This chapters icon will be available:

image

As for your original request, the downloader has been changed to instead generate M4B audiofiles with embedded cover art, metadata, and chapters.

As of v1.1.0 updated files and new files are automatically scanned. So you could trigger a scan by renaming an audio file, or you could remove the audiobook and press scan. This will generate the chapters.

from audiobookshelf.

Kudjo-Grand avatar Kudjo-Grand commented on June 10, 2024

Tried to test this, but while the new chapter icon was present, it wouldn't allow me to click it. I tried multiple books and multiple browsers with no luck.

Please advise.

from audiobookshelf.

advplyr avatar advplyr commented on June 10, 2024

The icon becomes clickable only if there are chapters. If you open the edit modal there is a chapters tab now, you can also view them there.
You need to update the audiobook files or remove the audiobook and press scan to have the chapters get set. Chapters are set during the scan.

from audiobookshelf.

advplyr avatar advplyr commented on June 10, 2024

If you have a lot of details you don't want to lose, just rename 1 file in the directory and it will auto-scan again since it detected an update.

from audiobookshelf.

Kudjo-Grand avatar Kudjo-Grand commented on June 10, 2024

Okay. I'll try that and report back.

from audiobookshelf.

advplyr avatar advplyr commented on June 10, 2024

The chapter scanner originally only used embedded chapters if the audiobook consisted of a single file. For multi-files it used the start of each file as a chapter.
I updated it to use embedded chapters if they are found and fallback to using the file start time as a chapter.

If you re-scan that audiobook and check the chapters tab, it should show the correct chapters now. v1.1.8

from audiobookshelf.

Related Issues (20)

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.