fix the search #5
Merged
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.
This pull request improves the resilience and flexibility of the
MediathekShowmodel and enhances the networking layer for Mediathek API interactions. The main changes include making thesizeproperty optional and more robust in its decoding, updating related logic to handle optional sizes, and improving the network layer with custom session configuration and better error/debug logging.Model robustness and decoding improvements:
sizeproperty inMediathekShowfrom a non-optionalIntto an optionalInt?, and updated its decoding logic to handle both numeric and string representations, as well as missing values. [1] [2] [3]sizethroughout the codebase to handle the optional case, including in encoding/decoding, download size calculation, and persistence logic. [1] [2] [3]Networking improvements:
MediathekAPIto use a customURLSessionconfiguration that disables caching, sets timeouts, and enables waits for connectivity. Also added detailed debug logging for requests, responses, and errors, and improved error handling for decoding and network failures.Project configuration:
Zapp.xcodeproj/project.pbxprojfrom 15 to 16. [1] [2]