Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions brozzler/ydl.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,11 @@ def ydl_postprocess_hook(d):
"max_sleep_interval": 27,
}

# http_headers is yt-dlp's default UA; extractors that set their own
# User-Agent on a request still override this.
if site.get("user_agent"):
ydl_opts["http_headers"] = {"User-Agent": site.get("user_agent")}

ytdlp_url = page.redirect_url if page.redirect_url else page.url
is_youtube_host = isyoutubehost(ytdlp_url)
if is_youtube_host and ytdlp_proxy_endpoints:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "brozzler"
version = "1.9.3"
version = "1.9.4"
authors = [
{ name="Noah Levitt", email="nlevitt@archive.org" },
]
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading