-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: simplify `AppriseModel` - Do not convert to `yarl.URL` to keep the model simple - Handle simplified cases for URLs that have specific limitations. ex: OS notification URL have a character limit * refactor: move apprise utils to its own module * refactor: define simplify URLs as a function * refactor: capture log messages + def as async (apprise) * fix: do not use `asyncio.gather` to notify log messages were being written out of order * refactor: simplify notifications * refactor: better logs * refactor: add more simplified cases * chore: add `pywin32` as depency on windows * refactor: log webhook results * refactor: enable windows notifications by default * refactor: clean up code * refactor: handle possible errors while getting the main log file * refactor: only log spacer if apprise failed * docs: update notifications details * docs: update notifications details x2 * fix: last line not being log * test: add tests for the `apprise` module * refactor: return result and logs in `send_apprise_notifications` * refactor: move apprise URLs validation to config startup Fail immediately if the file has invalid URLs instead of waiting for CDL to finish the run. * fix: make sure every parsed URL has at least 1 valid tag * test: add tests for the `send_apprise_notifications` * chore: bump `pytest` min version * refactor: split `file` and `url` into 2 diferent parameters * docs: add docstrings * fix: type checking errors * refactor: make some functions private * refactor: make validation error exit * refactor: make `get_apprise_urls` always return a list * test: update `invalid_multiple_urls.txt` * refactor: move `set_apprise_fixed` to config manager * refactor: move `set_pydantic_config` to `load_configs` * fix: file reference * refactor: add `ValueError` test case * test: increase coverage * refactor: allow passing multiple urls to `get_apprise_urls` * refactor: move file parsing back to `get_apprise_urls` * fix: handle files that do not exists * test: get 100% coverage * refactor: remove duplicate case * test: split test cases into individual functions * refactor: remove unused manager parameter
- Loading branch information
1 parent
82c8d64
commit 67a1aee
Showing
21 changed files
with
711 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
/Downloads/ | ||
/Old Files/ | ||
cyberdrop_dl_debug.log | ||
.coverage | ||
|
||
# Python cache | ||
__pycache__ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.