Closed mhdzumair closed 3 weeks ago
[!CAUTION]
Review failed
The pull request is closed.
The changes primarily involve modifications to several files, focusing on enhancing logic, error handling, and user interface elements. Key updates include simplifying the get_streams
function in api/main.py
, refining parameter handling in db/crud.py
, and improving the UserData
schema in db/schemas.py
. New CSS classes and HTML sections enhance the configuration interface, while JavaScript updates improve user experience by managing configuration modes. Additionally, constants in utils/const.py
have been reorganized, and stream filtering logic in utils/parser.py
has been simplified.
File | Change Summary |
---|---|
api/main.py |
Updated get_streams logic to check user_data.contribution_streams . Enhanced error handling in get_poster with specific logging and HTTPException raising. |
db/crud.py |
Modified get_movie_streams and get_series_streams to remove user_data parameter. Improved error handling in metadata retrieval functions. |
db/schemas.py |
Changed default values for selected_catalogs and language_sorting . Added contribution_streams boolean field with default value False . |
resources/css/styles.css |
Introduced new CSS classes for UI enhancements, including .mode-switch , .mode-buttons , and .mode-btn . |
resources/html/configure.html |
Added new sections for "Configuration Mode" and "Streaming Provider Options". Adjusted visibility of existing sections based on user mode. |
resources/js/config_script.js |
Added setConfigMode(mode) function for managing configuration modes and updated getUserData() to include contribution_streams . |
scrapers/utils.py |
Simplified run_scrapers function by removing user_data parameter and streamlining conditional checks. |
utils/const.py |
Removed specific catalog entries from CATALOG_DATA , updated TORRENT_SORTING_PRIORITY , and introduced LANGUAGES_FILTERS list. |
utils/parser.py |
Simplified filtering logic in filter_and_sort_streams and renamed parameter in dynamic_sort_key for clarity. |
api/main.py
regarding catalog retrieval and caching mechanisms may relate to the modifications in the get_streams
function in the main PR.download_info
function in api/main.py
has been modified to include a check for user permissions, which aligns with the changes in the main PR that enhance error handling in the get_streams
function.api/main.py
for the get_catalog
and get_meta
functions may connect with the overall error handling enhancements in the main PR.get_streams
function in api/main.py
to include media type in the URL construction are directly related to the changes made in the main PR regarding the get_streams
function.get_movie_streams
and get_series_streams
functions in db/crud.py
to include Redis lock handling may relate to the changes in the main PR that also involve streamlining function logic and error handling.hacktoberfest-accepted
In the code where rabbits play,
New features hop in bright array.
With streams and modes, we leap and bound,
In every line, new joys are found.
So let us cheer, both near and far,
For changes bright as a shining star! ✨🐇
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
Release Notes
New Features
Improvements
User Interface
These updates aim to enhance user experience, improve functionality, and streamline processes within the application.