This commit is contained in:
2026-01-19 06:24:09 -08:00
parent a961ac3ce7
commit 7ddf0065d1
45 changed files with 627 additions and 411 deletions

View File

@@ -452,7 +452,7 @@ class HTTPClient:
else:
kwargs["headers"] = self._get_headers()
last_exception = None
last_exception: Exception | None = None
for attempt in range(self.retries):
self._debug_panel(
@@ -875,7 +875,7 @@ def download_direct_file(
pass
tags: List[str] = []
if extract_ytdlp_tags:
if extract_ytdlp_tags is not None:
try:
tags = extract_ytdlp_tags(info)
except Exception as exc:
@@ -884,7 +884,7 @@ def download_direct_file(
if not any(str(t).startswith("title:") for t in tags):
info["title"] = str(filename)
tags = []
if extract_ytdlp_tags:
if extract_ytdlp_tags is not None:
try:
tags = extract_ytdlp_tags(info)
except Exception as exc:
@@ -1135,7 +1135,7 @@ class AsyncHTTPClient:
else:
kwargs["headers"] = self._get_headers()
last_exception = None
last_exception: Exception | None = None
for attempt in range(self.retries):
try: