mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-08-06 05:24:19 -04:00
use new fork of youtube-dl with support for extra http headers on every request
This commit is contained in:
parent
b5cb94fc8b
commit
88f352efea
3 changed files with 4 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
||||||
from brozzler.browser import Browser, BrowserPool
|
from brozzler.browser import Browser, BrowserPool
|
||||||
from brozzler.site import Page, Site
|
from brozzler.site import Page, Site
|
||||||
from brozzler.hq import BrozzlerHQ
|
from brozzler.hq import BrozzlerHQ
|
||||||
|
from brozzler.worker import BrozzlerWorker
|
||||||
|
|
||||||
def _read_version():
|
def _read_version():
|
||||||
import os
|
import os
|
||||||
|
|
|
@ -34,7 +34,7 @@ class BrozzlerWorker:
|
||||||
"noprogress": True,
|
"noprogress": True,
|
||||||
"nopart": True,
|
"nopart": True,
|
||||||
"no_color": True,
|
"no_color": True,
|
||||||
"http_headers": site.extra_headers,
|
"extra_http_headers": site.extra_headers,
|
||||||
}
|
}
|
||||||
if site.proxy:
|
if site.proxy:
|
||||||
ydl_opts["proxy"] = "http://{}".format(site.proxy)
|
ydl_opts["proxy"] = "http://{}".format(site.proxy)
|
||||||
|
|
|
@ -2,7 +2,8 @@ kombu
|
||||||
argparse
|
argparse
|
||||||
PyYAML
|
PyYAML
|
||||||
git+https://github.com/ikreymer/surt.git@py3
|
git+https://github.com/ikreymer/surt.git@py3
|
||||||
youtube_dl
|
# youtube_dl
|
||||||
|
git+https://github.com/nlevitt/youtube-dl.git@extra-http-headers
|
||||||
git+https://github.com/seomoz/reppy.git
|
git+https://github.com/seomoz/reppy.git
|
||||||
# websocket-client
|
# websocket-client
|
||||||
git+https://github.com/nlevitt/websocket-client.git@tweaks
|
git+https://github.com/nlevitt/websocket-client.git@tweaks
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue