pbar.update(0)

This commit is contained in:
2024-07-08 13:36:13 +02:00
committed by Flo Greistorfer
parent 868b273b5c
commit 8aa6ef99ba

View File

@@ -192,6 +192,7 @@ def list_folder(folder: str, title: str) -> None:
info[urllib.parse.quote(folder)] = _info info[urllib.parse.quote(folder)] = _info
if not args.non_interactive_mode: if not args.non_interactive_mode:
imgpbar.update(1) imgpbar.update(1)
pbar.update(0)
imgpbar.close() imgpbar.close()
if not contains_files and not args.use_fancy_folders: if not contains_files and not args.use_fancy_folders:
return return
@@ -200,9 +201,7 @@ def list_folder(folder: str, title: str) -> None:
with open(os.path.join(folder, "index.html"), "w", encoding="utf-8") as f: with open(os.path.join(folder, "index.html"), "w", encoding="utf-8") as f:
_info: List[str] = None _info: List[str] = None
header = os.path.basename(folder) or title header = os.path.basename(folder) or title
parent = ( parent = None if not foldername else f"{args.web_root_url}{urllib.parse.quote(foldername.removesuffix(folder.split('/')[-1] + '/'))}"
None if not foldername else f"{args.web_root_url}{urllib.parse.quote(foldername.removesuffix(folder.split('/')[-1] + '/'))}"
)
license_info: cclicense.License = ( license_info: cclicense.License = (
{ {
"project": args.site_title, "project": args.site_title,