Skip to content

[Bug] Audiobook duration shows 0 in the UI #330

Description

@JamesMcNee

What went wrong?

The duration of audiobooks can show as 0, despite the metadata containing a duration.

I have had a look at the code and have a fix that I shall raise as a PR attached to this issue, however you may have more context around if this is the right fix etc, so happy for it to be dismissed in favour of a better one if it's not quite right!

Steps to reproduce

  1. Download the ebook from the demo: https://demo.bookorbit.app/book/108?tab=files
  2. Upload it to a different bookorbit
  3. Attempt to play it in the webplayer
  4. Note that the total duration on the right hand side of the slider shows 0

Expected vs actual behavior

The book duration should be present on the player.

Your setup

BookOrbit: 1.10.0
Deployment: Kubernetes Cluster
Browser: Chrome

Relevant logs (optional)

Screenshots (optional)

Image

Before submitting

  • I've searched existing issues and this hasn't been reported yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreleasedIssue or PR is included in a released version.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions