mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-09-24 22:48:33 -04:00
black'd
This commit is contained in:
parent
789fe8116c
commit
de1890eedc
4 changed files with 7 additions and 5 deletions
|
@ -483,7 +483,7 @@ class Browser:
|
|||
skip_extract_outlinks=False,
|
||||
skip_visit_hashtags=False,
|
||||
skip_youtube_dl=False,
|
||||
ytdlp_tmpdir = '/tmp',
|
||||
ytdlp_tmpdir="/tmp",
|
||||
simpler404=False,
|
||||
page_timeout=300,
|
||||
behavior_timeout=900,
|
||||
|
|
|
@ -64,7 +64,7 @@ class BrozzlerWorker:
|
|||
skip_extract_outlinks=False,
|
||||
skip_visit_hashtags=False,
|
||||
skip_youtube_dl=False,
|
||||
ytdlp_tmpdir='/tmp',
|
||||
ytdlp_tmpdir="/tmp",
|
||||
simpler404=False,
|
||||
screenshot_full_page=False,
|
||||
page_timeout=300,
|
||||
|
|
|
@ -420,7 +420,9 @@ def do_youtube_dl(worker, site, page):
|
|||
Returns:
|
||||
`list` of `str`: outlink urls
|
||||
"""
|
||||
with tempfile.TemporaryDirectory(prefix="brzl-ydl-", dir=worker._ytdlp_tmpdir) as tempdir:
|
||||
with tempfile.TemporaryDirectory(
|
||||
prefix="brzl-ydl-", dir=worker._ytdlp_tmpdir
|
||||
) as tempdir:
|
||||
logging.info("tempdir for yt-dlp: %s", tempdir)
|
||||
ydl = _build_youtube_dl(worker, tempdir, site, page)
|
||||
ie_result = _try_youtube_dl(worker, ydl, site, page)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue