1
0
Fork 0

A little change of output.

This commit is contained in:
Alexander Andreev 2020-07-18 05:04:06 +04:00
parent 22961611da
commit 4db2e1dc75
3 changed files with 6 additions and 4 deletions

View File

@ -1,7 +1,7 @@
build: scrapthechan README.md setup.cfg build: scrapthechan README.md setup.cfg
python setup.py sdist bdist_wheel python setup.py sdist bdist_wheel
install: install:
python -m pip install --upgrade dist/scrapthechan-0.2.0-py3-none-any.whl --user python -m pip install --upgrade dist/scrapthechan-0.2.1-py3-none-any.whl --user
uninstall: uninstall:
# We change directory so pip uninstall will run, it'll fail otherwise. # We change directory so pip uninstall will run, it'll fail otherwise.
@cd ~/ @cd ~/

View File

@ -1,5 +1,5 @@
__date__ = "18 Jule 2020" __date__ = "18 Jule 2020"
__version__ = "0.2.0" __version__ = "0.2.1"
__author__ = "Alexander \"Arav\" Andreev" __author__ = "Alexander \"Arav\" Andreev"
__email__ = "me@arav.top" __email__ = "me@arav.top"
__copyright__ = f"Copyright (c) 2020 {__author__} <{__email__}>" __copyright__ = f"Copyright (c) 2020 {__author__} <{__email__}>"

View File

@ -85,13 +85,15 @@ def main() -> None:
print(f"Supported image boards are {', '.join(SUPPORTED_IMAGEBOARDS)}") print(f"Supported image boards are {', '.join(SUPPORTED_IMAGEBOARDS)}")
exit() exit()
except ParserThreadNotFoundError: except ParserThreadNotFoundError:
print(f"Thread is no longer exist.") print(f"Thread {args['site']}/{args['board']}/{args['thread']} " \
"is no longer exist.")
exit() exit()
flen = len(parser.files) flen = len(parser.files)
print(f"There are {flen} files in this thread.") print(f"There are {flen} files in " \
f"{args['site']}/{args['board']}/{args['thread']}.")
if not args["output-dir"] is None: if not args["output-dir"] is None:
save_dir = args["output-dir"] save_dir = args["output-dir"]