Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add a subtitle provider (subliminal) fix: address high memory usage refactor: events, threading, api fix: various small bug fixes chore: websockets for smoother frontend experience Co-authored-by: Spoked Co-authored-by: iPromKnight Co-authored-by: AyushSehrawat Co-authored-by: FlashLightning67 Co-authored-by: davidemarcoli fix: Fix `reset_streams` function call and ensure `active_stream` is reset (#639) - Corrected the `reset_streams` function call to pass the `MediaItem` object instead of its ID. - Added a line to reset the `active_stream` attribute to `None` in the `reset_streams` function. - Ensured the script exits after performing hard reset or symlink repair based on environment variables. feat: Add custom color and icon settings for default log levels in logger setup (#640) - Added custom color and icon settings for default log levels: DEBUG, INFO, WARNING, CRITICAL, and SUCCESS. - Ensured consistency in log level configuration by applying the same method for both custom and default log levels. Blue was giving me a headache for debug in dozzle :D fix: incorrect parameter type in `blacklist_stream` function (#641) * fix: incorrect parameter type in `blacklist_stream` function - Corrected the parameter type for the `stream` argument in the `blacklist_stream` function from `str` to `Stream`. - Added exception handling and logging for errors in the `blacklist_stream` function. - Ensured session commit and refresh are always executed in `blacklist_stream` when the session is closed. - Added an exit statement at the end of the script to ensure proper termination. * feat: Add `package-mode` to pyproject.toml and update dependencies - Introduced `package-mode` flag in `pyproject.toml`. - Updated `pytest` dependency to version `8.3.2`. - Added `testcontainers` dependency. - Commented out all test cases in `test_container.py` as the container is no longer used. These need to be reworked. - Added start of db function tests which utilise test-containers to spin up a container, shared across all tests. Between each test, the state of the db is cleared down, and migrated again, so that test sessions are isolated - they cannot share data. Currently only testing reset and blacklist - this forms the basis of all our db tests. feat: Add functions to delete MediaItems and associated relationships (#642) - Introduced `delete_media_item`, `delete_media_item_by_id`, `delete_media_item_by_item_id`, and `delete_media_items_by_ids` functions in `db_functions.py` to handle deletion of MediaItems and their associated relationships. - Updated `MediaItem` relationships to include cascade delete options. - Refactored `remove_item` endpoint in `items.py` to use the new deletion functions. - Added tests for the new deletion functions in `test_db_functions.py`. feat: Add `get_media_items_by_ids` function and integrate it into item removal process (#643) - Introduced `get_media_items_by_ids` function in `db_functions.py` to retrieve multiple MediaItems by their IDs. - Updated `remove_item` endpoint in `items.py` to use `get_media_items_by_ids` for validating and deleting media items. - Added unit test `test_get_media_items_by_ids_success` in `test_db_functions.py` to verify the functionality of `get_media_items_by_ids`. refactor: Refactor `db_functions.py` to use SQLAlchemy queries for retrieving media items by ID (#644) fix: add item endpoint - items added via endpoint where not bound to a session causing issue with event manager fix: reset item if no active stream fix: append to active connections if doesnt exist in ws manager fix: subliminal handle initialization failures fix: ws handle multiple connection attempts and fix _send_json fix: Remove unused import and update log file error message in default controller - Removed unused `EventManager` import from `program.py`. - Updated error message in `get_logs` endpoint to be more descriptive. Co-authored-by: iPromKnight <[email protected]>
- Loading branch information