Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regardless of which chapter I choose, the audio starts playing from the beginning every time #987

Open
winstonma opened this issue Feb 14, 2025 · 1 comment

Comments

@winstonma
Copy link

winstonma commented Feb 14, 2025

I cloned the repo 7b37cae version and built the flatpak image.

Then I opened the .opus audiobook using cozy. It could read the chapters from the audiobook and display in cozy. However when I click a specific chapter it always play the beginning of the audiobook (maybe the first chapter). In this version all chapter name and chapter time is correct. The only unexpected thing here is cozy would play the beginning of the audiobook when I click other chapters.

The flatpak version using c02e73e with PR #969 works flawlessly so my primary suspect is commit ff983a0. BTW I saved the working flatpak version is here.

Pls don't forget to Scan Library everytime when cozy is started

@winstonma
Copy link
Author

winstonma commented Feb 19, 2025

I printed out the media_file.chapters for my audiobook:

This is the .M4B files that Cozy can go to the correct chapter:

 Chapter(name='End Credits',
         position=16681144000000,
         length=37.76800000000003,
         number=22)]

This is a Chapter inside .Opus file, which the player always start at the beginning of the audiofile:

 Chapter(name='A Note on the Recording',
         position=43.899,
         length=89.584,
         number=3),

I am not sure if the position of the Opus chapter is too small that Cozy would always seek the first chapter

EDIT: According to chapter.py the position parameter should be in seconds. So the M4B is version is not correct. However the M4B could go to the correct chapter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant