-
Notifications
You must be signed in to change notification settings - Fork 110
Refactor media type sniffing #377
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
Merged
Merged
Changes from 8 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
476a3e6
Refactor media types
mickael-menu 2cfc2e7
Implement the media type in resources thanks to the format registry
mickael-menu de0a9e1
Optimization
mickael-menu 14d8e02
Remove legacy code
mickael-menu c27c939
Fix reading remote web publication
mickael-menu bf320f3
Fix database naming convention in the test app
mickael-menu a67f52d
Move multi rounds sniffing strategy to `OptimizedRoundsMediaTypeSniffer`
mickael-menu 1fdf5d3
Remove Format from Asset
mickael-menu af68130
Restore default HTTP client in the OPDS parsers
mickael-menu 3a54463
Simplify `Format`
mickael-menu d065398
Make `Resource.mediaType` non nullable
mickael-menu 05a7017
`MediaTypeSnifferContext` is not closeable
mickael-menu 595add0
Fix tests
mickael-menu 05a09bd
Make system and content URI sniffing generic
mickael-menu 26eec03
Fix lint
mickael-menu 49f6cbc
Simplify `FormatRegistry`
mickael-menu 25bc2d3
Make sure we always return canonical media types, and separate light …
mickael-menu 1c8d360
Address review comments
mickael-menu 866b93b
Fix `ParserAssetFactory`
mickael-menu b516c69
Reintroduce `MediaTypeRetriever`
mickael-menu 9afa5ef
Remove `ZipContainer`
mickael-menu 0c2fce1
Fix tests
mickael-menu be26f9f
Fix `AssetRetriever`
mickael-menu 801266d
Add documentation
mickael-menu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,4 +82,5 @@ lint/reports/ | |
docs/readium | ||
docs/index.md | ||
docs/package-list | ||
site/ | ||
site/ | ||
androidTestResultsUserPreferences.xml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.