mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-29 23:50:22 +00:00
rename download url func
This commit is contained in:
parent
09d79e55a0
commit
af7e8df0eb
1 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ from config import (
|
||||||
)
|
)
|
||||||
from util import (
|
from util import (
|
||||||
check_dependencies,
|
check_dependencies,
|
||||||
download_url,
|
save_remote_source,
|
||||||
save_stdin_source,
|
save_stdin_source,
|
||||||
pretty_path,
|
pretty_path,
|
||||||
migrate_data,
|
migrate_data,
|
||||||
|
@ -202,7 +202,7 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
# Step 0: Download url to local file (only happens if a URL is specified instead of local path)
|
# Step 0: Download url to local file (only happens if a URL is specified instead of local path)
|
||||||
if source and any(source.startswith(s) for s in ('http://', 'https://', 'ftp://')):
|
if source and any(source.startswith(s) for s in ('http://', 'https://', 'ftp://')):
|
||||||
source = download_url(source)
|
source = save_remote_source(source)
|
||||||
elif stdin_raw_text:
|
elif stdin_raw_text:
|
||||||
source = save_stdin_source(stdin_raw_text)
|
source = save_stdin_source(stdin_raw_text)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue