feat: Use CURL_ARGS on title extractor

This commit is contained in:
Cristian 2020-10-15 08:58:22 -05:00 committed by Cristian Vargas
parent 563d0f94ec
commit c12fe0e3d7
4 changed files with 8 additions and 5 deletions

View file

@ -18,6 +18,7 @@ from ..config import (
TIMEOUT,
SAVE_GIT,
GIT_BINARY,
GIT_ARGS,
GIT_VERSION,
GIT_DOMAINS,
CHECK_SSL_VALIDITY
@ -56,7 +57,7 @@ def save_git(link: Link, out_dir: Optional[Path]=None, timeout: int=TIMEOUT) ->
cmd = [
GIT_BINARY,
'clone',
'--recursive',
*GIT_ARGS,
*([] if CHECK_SSL_VALIDITY else ['-c', 'http.sslVerify=false']),
without_query(without_fragment(link.url)),
]