mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-14 07:04:27 -04:00
make git domains configurable
This commit is contained in:
parent
d35c6cf8b5
commit
0df098717a
2 changed files with 3 additions and 1 deletions
|
@ -30,6 +30,7 @@ from config import (
|
|||
TIMEOUT,
|
||||
ANSI,
|
||||
ARCHIVE_DIR,
|
||||
GIT_DOMAINS,
|
||||
)
|
||||
from util import (
|
||||
check_dependencies,
|
||||
|
@ -504,7 +505,7 @@ def fetch_favicon(link_dir, link, timeout=TIMEOUT):
|
|||
def fetch_git(link_dir, link, timeout=TIMEOUT):
|
||||
"""download full site using git"""
|
||||
|
||||
if not (link['domain'] == 'github.com'
|
||||
if not (link['domain'] in GIT_DOMAINS
|
||||
or link['url'].endswith('.git')
|
||||
or link['type'] == 'git'):
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue