mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2026-08-18 02:53:10 +00:00
## Description This PR reduces avoidable per-parser stream opens during chapter loading by introducing parser dispatch based on bounded magic-byte detection with hint-based fallback ordering. The implementation evolved during review from the original MIME-first dispatch approach into a parser-neutral, magic-byte-first detection flow that preserves compatibility behavior for unknown streams while eliminating unnecessary parser probing for confidently detected formats. Addresses part 1 of issue #8352. ### Checklist - [x] I have read the contribution guidelines: https://github.com/AntennaPod/AntennaPod/blob/develop/CONTRIBUTING.md#submit-a-pull-request - [x] I have performed a self-review of my code, going through my changes line by line and carefully considering why this line change is necessary - [x] I have run the automated code checks using `./gradlew checkstyle lint spotbugsPlayDebug spotbugsDebug` - [x] My code follows the style guidelines of the AntennaPod project: https://antennapod.org/contribute/develop/app/code-style - [ ] I have mentioned the corresponding issue and the relevant keyword (e.g., "Closes: #xy") in the description (see https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue) - [x] If it is a core feature, I have added automated tests --------- Co-authored-by: ByteHamster <info@bytehamster.com>
:parser
This folder contains modules that parse data, for example XML or media files.
All parsers produce :model objects and have no UI dependencies.