fixes from PR feedback

This commit is contained in:
Gretchen Miller 2025-03-10 17:21:31 -07:00
parent d1b2fad9ce
commit a6c827ebb9
2 changed files with 2 additions and 1 deletions

View File

@ -284,6 +284,7 @@ class BrozzlerWorker:
VideoCaptureOptions.DISABLE_YTDLP_CAPTURE.value,
]:
logger.info("skipping ytdlp: site has video capture disabled")
return False
ytdlp_url = page.redirect_url if page.redirect_url else page.url
@ -396,7 +397,7 @@ class BrozzlerWorker:
return {}
def _needs_browsing(self, page_headers) -> bool:
return not bool(
return not (
"content-type" in page_headers
and "html" not in page_headers["content-type"]
)

0
dev/pre-commit Normal file → Executable file
View File