mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-10 22:54:22 +00:00
fix missing import
This commit is contained in:
parent
5ee1c39720
commit
c806068683
1 changed files with 2 additions and 1 deletions
|
@ -46,6 +46,7 @@ from util import (
|
||||||
without_query,
|
without_query,
|
||||||
without_fragment,
|
without_fragment,
|
||||||
fetch_page_title,
|
fetch_page_title,
|
||||||
|
is_static_file,
|
||||||
progress,
|
progress,
|
||||||
chmod_file,
|
chmod_file,
|
||||||
pretty_path,
|
pretty_path,
|
||||||
|
@ -554,7 +555,7 @@ def fetch_media(link_dir, link, timeout=MEDIA_TIMEOUT, overwrite=False):
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
hints = (
|
hints = (
|
||||||
'got youtubedl response code {}:'.format(result.returncode)),
|
'got youtubedl response code {}:'.format(result.returncode),
|
||||||
*result.stderr.decode().split('\n'),
|
*result.stderr.decode().split('\n'),
|
||||||
)
|
)
|
||||||
raise ArchiveError('Failed to download media', hints)
|
raise ArchiveError('Failed to download media', hints)
|
||||||
|
|
Loading…
Reference in a new issue