Skip to content

Add the ability to customize audio parser specifications and ignored file extensions #625

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

Closed
wants to merge 3 commits into from

Conversation

grighakobian
Copy link
Contributor

@grighakobian grighakobian commented Jul 2, 2025

The Problem

Opening zipped audiobooks that contain JPG and PDF files results in a PublicationParseError.formatNotSupported.

The Solution

Added support to customize audio parser specifications and ignored file extensions

@grighakobian grighakobian changed the title Fix issue where zipped audio book contains pdf or jpg files Ignore PDF and JPG files in zipped audiobooks to prevent parsing errors Jul 2, 2025
@grighakobian grighakobian changed the title Ignore PDF and JPG files in zipped audiobooks to prevent parsing errors Add the ability to customize audio parser specifications and ignored file extensions Jul 4, 2025
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.

Allowing to customize the supported audio format specifications in the audio parser makes sense to me.

However I don't think we really need the ignoredExtensions, as the reading order is built by filtering the resources to audioSpecifications. Did you try removing the ignoredExtensions altogether?

@grighakobian
Copy link
Contributor Author

@mickael-menu You're right, I don't actually need to add .pdf or .jpg as ignored extensions. So I'll go ahead and close this pull request, since I also don't really need to customize the audio specifications after all. Thanks for the feedback!

@grighakobian grighakobian deleted the fix/audio-parser branch July 7, 2025 14:54
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