Skip to content

Update audio publication manifest augmentor api #627

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

Conversation

grighakobian
Copy link
Contributor

The Problem

Some zipped audiobooks containing MP3 files fail to parse the duration of the audio files. Additionally, the AudioPublicationAugmentedManifest initializer is internal, preventing the use of a custom AudioPublicationManifestAugmentor.

The Solution

To parse the duration, we use the resource item to read the entry data. Since the data reader functions are asynchronous, I decided to update the AudioPublicationManifestAugmentor API to support async. I also modified the AudioPublicationAugmentedManifest initializer to allow the use of a custom AudioPublicationManifestAugmentor.

Copy link
Member

@mickael-menu mickael-menu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good, could you just revert the changes in Package.resolved? Thank you

@grighakobian grighakobian force-pushed the feat/update-audio-publication-manifest-augmentor branch from cedc37f to 6e1d596 Compare July 7, 2025 13:01
@grighakobian
Copy link
Contributor Author

Looking good, could you just revert the changes in Package.resolved? Thank you

Done!

@mickael-menu mickael-menu merged commit df5f21a into readium:develop Jul 7, 2025
5 checks passed
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

Successfully merging this pull request may close these issues.

2 participants