Skip to content

Bulk asynchronous downloader for multiple file hosts

chore: update to apprise v2.0

NTFSvolume1b363f03c024
diff --git a/cyberdrop_dl/utils/apprise.py b/cyberdrop_dl/utils/apprise.py
index 6a55d9055..66982410a 100644
--- a/cyberdrop_dl/utils/apprise.py
+++ b/cyberdrop_dl/utils/apprise.py
@@ -6,7 +6,7 @@ import dataclasses
import logging
from typing import TYPE_CHECKING
-from cyberdrop_dl import aio
+from cyberdrop_dl import aio, env
from cyberdrop_dl.constants import MAIN_LOG_FILE
from cyberdrop_dl.logs import MAX_ATTACHMENT_SIZE, borrow_logger, export_logs, log_spacer
@@ -62,7 +62,8 @@ async def notify(urls: Sequence[AppriseURL], body: str) -> None:
async def _notify(apprise_obj: apprise.Apprise, messages: Iterable[_AppriseMessage]) -> None:
- with borrow_logger("apprise", level=logging.INFO):
+ log_level = logging.DEBUG if env.DEBUG_MODE else logging.INFO
+ with borrow_logger("apprise", level=log_level):
_ = await aio.gather(
*(
apprise_obj.async_notify(
@@ -71,6 +72,8 @@ async def _notify(apprise_obj: apprise.Apprise, messages: Iterable[_AppriseMessa
body_format=msg.body_format,
attach=msg.attachment,
tag=msg.tag,
+ timeout=15,
+ log_level=log_level,
)
for msg in messages
)
diff --git a/pyproject.toml b/pyproject.toml
index 450e4ba94..7f62489e1 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -55,11 +55,12 @@ requires-python = ">=3.12"
[project.optional-dependencies]
apprise = [
- "apprise >=1.13.1,<2.0.0",
+ "apprise >=2.0.1,<3.0.0",
"click ==8.5.0",
+ "oauthlib>=4.0.0",
"urllib3>=2.8.0", # Transient dep with CVE
'pywin32>=312; platform_system == "Windows"',
- 'tzdata>=2026.3; platform_system == "Windows"'
+ 'tzdata>=2026.5; platform_system == "Windows"'
]
lxml = ["lxml>=6.1.3"]
wreq = ["wreq>=0.12.2"]
diff --git a/uv.lock b/uv.lock
index 253e2c648..f62226a7f 100644
--- a/uv.lock
+++ b/uv.lock
@@ -157,7 +157,7 @@ wheels = [
[[package]]
name = "apprise"
-version = "1.13.1"
+version = "2.0.1"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "certifi" },
@@ -167,10 +167,11 @@ dependencies = [
{ name = "requests" },
{ name = "requests-oauthlib" },
{ name = "tzdata", marker = "sys_platform == 'win32'" },
+ { name = "urllib3" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/81/44/5965c245998c72022297e2b515d9594281a97ed1442b3fa022c2c2324102/apprise-1.13.1.tar.gz", hash = "sha256:e7689dda71aaf739244d6c8690de13cb1361b8d0a79980fb48bb397455ca0bdd", size = 2520230, upload-time = "2026-08-31T02:12:01.472Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/1b/8d/61c02aeb9b7644d915106252b8fc42e5f3b3765343c9fe3bef5489e903a4/apprise-2.0.1.tar.gz", hash = "sha256:8cae8ae5877b9cfd1dddffc17ac1e50f780ab6bdf948f95215e2466ef7230565", size = 3353898, upload-time = "2026-10-03T19:44:56.142Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/45/7d/6852bd3fc2eb48fa432cb22f5df11d1c902137dcecab93e0d8319b8c8e16/apprise-1.13.1-py3-none-any.whl", hash = "sha256:2ded6d00562dd2ae9eb6f1e6cc8d3fb66e06f7ede6efac0ad029031b633780f4", size = 1826431, upload-time = "2026-08-31T02:11:58.263Z" },
+ { url = "https://files.pythonhosted.org/packages/db/0e/b0ca7dde275f100ecc199dba362a8f1783c906393ab0d3f2c148d8500ddc/apprise-2.0.1-py3-none-any.whl", hash = "sha256:2a9b0f4fc906227f70998ea4462184dd605e796d3932e6e7ce0fe0f134048610", size = 2456127, upload-time = "2026-10-03T19:44:53.265Z" },
]
[[package]]
@@ -709,6 +710,7 @@ dependencies = [
apprise = [
{ name = "apprise" },
{ name = "click" },
+ { name = "oauthlib" },
{ name = "pywin32", marker = "sys_platform == 'win32'" },
{ name = "tzdata", marker = "sys_platform == 'win32'" },
{ name = "urllib3" },
@@ -735,7 +737,7 @@ requires-dist = [
{ name = "aiohttp", specifier = ">=3.14.3" },
{ name = "aiolimiter", specifier = ">=1.3.0" },
{ name = "aiosqlite", specifier = ">=0.22.1" },
- { name = "apprise", marker = "extra == 'apprise'", specifier = ">=1.13.1,<2.0.0" },
+ { name = "apprise", marker = "extra == 'apprise'", specifier = ">=2.0.1,<3.0.0" },
{ name = "async-mega-py", specifier = ">=2.4.1" },
{ name = "backports-zstd", marker = "python_full_version < '3.14' and implementation_name == 'cpython'", specifier = ">=1.7.0" },
{ name = "beautifulsoup4", specifier = ">=4.15.0" },
@@ -749,6 +751,7 @@ requires-dist = [
{ name = "lxml", marker = "extra == 'lxml'", specifier = ">=6.1.3" },
{ name = "m3u8", specifier = ">=6.0.0" },
{ name = "multidict", specifier = ">=6.9.1" },
+ { name = "oauthlib", marker = "extra == 'apprise'", specifier = ">=4.0.0" },
{ name = "propcache", specifier = ">=0.5.4" },
{ name = "psutil", marker = "sys_platform != 'android'", specifier = ">=7.2.1" },
{ name = "pycryptodome", specifier = ">=3.23.0" },
@@ -761,7 +764,7 @@ requires-dist = [
{ name = "send2trash", specifier = ">=2.0.0" },
{ name = "soupsieve", specifier = ">=2.9.2" },
{ name = "typing-extensions", specifier = ">=4.16.0" },
- { name = "tzdata", marker = "sys_platform == 'win32' and extra == 'apprise'", specifier = ">=2026.3" },
+ { name = "tzdata", marker = "sys_platform == 'win32' and extra == 'apprise'", specifier = ">=2026.5" },
{ name = "urllib3", marker = "extra == 'apprise'", specifier = ">=2.8.0" },
{ name = "wassima", specifier = ">=2.1.3" },
{ name = "wreq", marker = "extra == 'wreq'", specifier = ">=0.12.2" },
@@ -1208,11 +1211,11 @@ wheels = [
[[package]]
name = "oauthlib"
-version = "3.3.1"
+version = "4.0.0"
source = { registry = "https://pypi.org/simple" }
-sdist = { url = "https://files.pythonhosted.org/packages/0b/5f/19930f824ffeb0ad4372da4812c50edbd1434f678c90c2733e1188edfc63/oauthlib-3.3.1.tar.gz", hash = "sha256:0f0f8aa759826a193cf66c12ea1af1637f87b9b4622d46e866952bb022e538c9", size = 185918, upload-time = "2025-06-19T22:48:08.269Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/7a/d8/a1bcc8ba112a627f8ffbdc212a78ce18d3ac07e91a5ca65d27918eee25a1/oauthlib-4.0.0.tar.gz", hash = "sha256:efb274799819440f95b4ab3b818869f1ce9ae26c5beacba0201d1a1b76b54f86", size = 187232, upload-time = "2026-09-28T06:01:18.77Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/be/9c/92789c596b8df838baa98fa71844d84283302f7604ed565dafe5a6b5041a/oauthlib-3.3.1-py3-none-any.whl", hash = "sha256:88119c938d2b8fb88561af5f6ee0eec8cc8d552b7bb1f712743136eb7523b7a1", size = 160065, upload-time = "2025-06-19T22:48:06.508Z" },
+ { url = "https://files.pythonhosted.org/packages/d9/f4/78229a1066068ca14fc60fb26cf7381cabe4382261392b90e5f9552722d4/oauthlib-4.0.0-py3-none-any.whl", hash = "sha256:624c28c13a0a59cabf9747dfa52af63be3e512a7f2714df16e91b5b3a145e6cd", size = 159715, upload-time = "2026-09-28T06:01:17.008Z" },
]
[[package]]
@@ -1778,11 +1781,11 @@ wheels = [
[[package]]
name = "tzdata"
-version = "2026.3"
+version = "2026.5"
source = { registry = "https://pypi.org/simple" }
-sdist = { url = "https://files.pythonhosted.org/packages/92/ff/5a28bdfd8c3ebec42564ac7d0e54ca3db65044a9314a97f9564fa7a1e926/tzdata-2026.3.tar.gz", hash = "sha256:4a1518b8993086a7982523e071643f3c0e5f213e75b21318e78bcabfff9d1415", size = 198674, upload-time = "2026-07-10T08:50:37.887Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/d9/68/f1b440335057bfce71b6e50a9d09445aa2ecbd08359a337976627b8409e7/tzdata-2026.5.tar.gz", hash = "sha256:8cc73c0a0bfca7dbfa59235d60b2eff82231dee33f53d206db1acd9173cfc0a7", size = 200404, upload-time = "2026-10-03T09:23:14.143Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/e5/6d/b53b99a9f2766d095985947a5782f1702cabb129a34f7a802d7197af832f/tzdata-2026.3-py2.py3-none-any.whl", hash = "sha256:dc096730c87af6cab1b171c9d532be840741ff5d459015e7f6947bd7d7e54931", size = 348168, upload-time = "2026-07-10T08:50:36.46Z" },
+ { url = "https://files.pythonhosted.org/packages/94/21/1e5995a1c920cce14e4bffae20c665ec10e7ed03ab25e006cd741092b718/tzdata-2026.5-py2.py3-none-any.whl", hash = "sha256:b683bd1b6659ddcd810ff02ad09ba821d4bf1065072805063eb35c49617905ac", size = 347996, upload-time = "2026-10-03T09:23:12.535Z" },
]
[[package]]