Merge pull request #338 from comsomisha/master

Bug fix with youtube-dl option
This commit is contained in:
Nick Sweeting 2020-04-16 10:51:12 -04:00 committed by GitHub
commit 737c5c3f2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -496,7 +496,6 @@ def fetch_media(link_dir, link, timeout=MEDIA_TIMEOUT):
'--write-thumbnail',
'--no-call-home',
'--no-check-certificate',
'--user-agent',
'--all-subs',
'--extract-audio',
'--keep-video',
@ -563,7 +562,7 @@ def archive_dot_org(link_dir, link, timeout=TIMEOUT):
CURL_BINARY,
'--location',
'--head',
*(('--user-agent', '{}'.format(CURL_USER_AGENT),) if CURL_USER_AGENT else ()), # be nice to the Archive.org people and show them where all this ArchiveBox traffic is coming from
*(('--user-agent', '{}'.format(CURL_USER_AGENT),) if CURL_USER_AGENT else ()), # be nice to the Archive.org people and show them where all this ArchiveBox traffic is coming from
'--max-time', str(timeout),
*(() if CHECK_SSL_VALIDITY else ('--insecure',)),
submit_url,