Closed mhdzumair closed 1 month ago
[!CAUTION]
Review failed
The pull request is closed.
The changes in this pull request involve enhancements across multiple files, focusing on middleware improvements, database handling, user interface updates, and error management. Key modifications include updates to the lifespan
management in api/main.py
, logging enhancements in api/middleware.py
, and the introduction of a checkbox for cached streams in the HTML configuration. Additionally, the database layer has been adjusted for better stream handling, while utility functions have been refined for improved validation and parsing.
File Path | Change Summary |
---|---|
api/main.py | Updated lifespan async context manager for scheduler initialization and shutdown logic. |
api/middleware.py | Enhanced logging and request handling in multiple middleware classes; added TimingMiddleware . |
db/crud.py | Improved Redis lock handling in scraping functions to prevent race conditions. |
db/schemas.py | Modified StreamingProvider and UserData classes; added only_show_cached_streams field. |
resources/html/configure.html | Added a checkbox for "Only Show Cached Streams" in the configuration form. |
resources/js/config_script.js | Introduced only_show_cached_streams property in streamingProviderData object. |
scrapers/prowlarr.py | Enhanced error handling and logging in process_streams method. |
utils/parser.py | Added filtering condition in filter_and_sort_streams to retain only cached streams. |
utils/validation_helper.py | Modified URL validation logic, including cache key generation and error handling improvements. |
api/main.py
, db/crud.py
, db/schemas.py
, resources/html/configure.html
, resources/js/config_script.js
, scrapers/prowlarr.py
, utils/parser.py
, and utils/validation_helper.py
, specifically focusing on the addition of a filter for cached streams and enhancements to Redis lock handling, which directly relate to the changes made in the main PR.hacktoberfest-accepted
🐰 In the meadow, changes bloom,
With streams and logs, we make room.
A checkbox here, a lock applied,
In code we trust, our hopes abide.
With every tweak, our system grows,
A rabbit's joy in code that flows! 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
Bug Fixes
Improvements