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

Add basic tests, and fix some DAISY2 handling #7

Merged
merged 4 commits into from
Sep 21, 2023

Conversation

cwendling
Copy link
Member

This introduce basic testing for how the file's "spine" is loaded.

It also introduces 4 tests based on real-world DAISY files, with audio and relevant test stripped/redacted hopefully not to irritate anybody (everything there is is the file's structure and general details like e.g. TOC).

It finally introduces a fix for reading some DAISY2 files (the examples there just couldn't be read with >+ 10.4. I can of course split this out to another PR if you think it's better.

Verify that the "spine" (play order) is stable, by dumping it from
test books.

Books are from various locations, removing any actual recording not
necessary for the tests, and possibly copyrighted.  All that is left
should be assumed meta-data, and be fair-use.
Remove handling of <text> nodes that don't seem to make sense in audio
reading, but leads the parser down a rabbit hole and skipping further
content in that file.

This got introduced in c01216f,
probably as a refactoring trying to merge daisy-player and
ebook-speaker codebases.
@sthibaul sthibaul merged commit 86ba596 into book-readers:main Sep 21, 2023
1 check passed
@sthibaul
Copy link
Member

I added a TERM fix and included it in CI, thanks!

@cwendling cwendling deleted the tests branch September 22, 2023 05:01
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