Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor improved threading & logging #601

Merged
merged 70 commits into from
Jan 26, 2024

Conversation

vagabondHustler
Copy link
Owner

No description provided.

vagabondHustler and others added 30 commits January 18, 2024 21:47
- Updated Python version in .github/workflows/release.yml
- Updated required Python version in README.md
- Updated Python version in pyproject.toml
- Added Python 3.12 support in tox.ini
- Updated CI workflow to trigger on `dev` branch
- Added Python 3.12.* to the matrix for dependency_review job
- Adjusted linting workflow to run on the `dev` branch
- Modified GitHub Actions workflow in release.yml
- Updated references to `inputs.checkout_branch` to `github.ref_name`
- Added `pr_merge` job to create and merge PRs
- Corrected condition for checking empty directory in core.py
- Adjusted index calculation for 'dev' branch
- Corrected escape sequences in file paths
- Used raw string literals for regular expressions
Bumps [selectolax](https://github.com/rushter/selectolax) from 0.3.17 to 0.3.18.
- [Release notes](https://github.com/rushter/selectolax/releases)
- [Changelog](https://github.com/rushter/selectolax/blob/master/CHANGES.rst)
- [Commits](rushter/selectolax@v0.3.17...v0.3.18)

---
updated-dependencies:
- dependency-name: selectolax
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 3 to 4.
- [Release notes](https://github.com/actions/dependency-review-action/releases)
- [Commits](actions/dependency-review-action@v3...v4)

---
updated-dependencies:
- dependency-name: actions/dependency-review-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
vagabondHustler and others added 25 commits January 22, 2024 22:59
Feat enhance download manager functionality

- Added the option to always use the download manager.
- Introduced the `download_manager.open_on_no_matches` config
- Introduced the `download_manager.always_open` config
- Introduced the `download_manager.no_automatic_downloads` config
- Updated default app configuration and config reading.

- Updated download manager logic to determine when it should open.
- Added additional tests to ensure the proper functioning of the download manager.

- Enhanced download manager functionality with the following features:
  - The download manager now opens in two scenarios: when no matches are found or always, regardless of subtitle count.
  - Users have control over automatic downloads for subtitles that would have been downloaded by default when always using the download manager.
  - Updated the `download_manager` method in the `SubsearchCore` class.
  - Modified the handling of `rejected_subtitles` in the `DownloadManager` class.
  - Improved sorting and display of subtitles in the `DownloadManager`.
  - Added automatic downloads based on an acceptance threshold.
  - Removed temporary zip archives after subtitle extraction.
- Added a Note section for ppl interested in dev builds
- Fixed the reported number of downloaded subtitles in the log and displayed as a toast massage
- Introduced `PropagatingThread` class for propagating exceptions
- Implemented `handle_tasks` for managing multiple threads
- Enhanced logging for thread start and finish events
- Updated log format in `io_log.py` to include module, lineno, and timestamp
- Updated log calls to match new format in `io_file_system.py`
- Removed `misc.multithreading` option from Subsearch
- Removed `misc.multithreading` option from Subsearch
- Removed unnecessary logging calls in decorators module
- Improved conditions in `call_func` and `_CoreSubsearchFuncCondtitons`
- Added `capture_call_info` decorator for capturing call information
@vagabondHustler vagabondHustler enabled auto-merge (squash) January 26, 2024 17:10
@vagabondHustler vagabondHustler merged commit c188322 into dev Jan 26, 2024
4 checks passed
@vagabondHustler vagabondHustler deleted the chore/refactor_threading_logging/240126180053 branch January 26, 2024 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant