diff --git a/brozzler/worker.py b/brozzler/worker.py index f6cf4a0..1049295 100644 --- a/brozzler/worker.py +++ b/brozzler/worker.py @@ -34,8 +34,9 @@ class BrozzlerWorker: "noprogress": True, "nopart": True, "no_color": True, - "extra_http_headers": site.extra_headers, } + if site.extra_headers: + ydl_opts["extra_http_headers"] = site.extra_headers if site.proxy: ydl_opts["proxy"] = "http://{}".format(site.proxy) ## XXX (sometimes?) causes chrome debug websocket to go through