mirror of
https://github.com/greflm13/StaticGalleryBuilder.git
synced 2026-02-05 11:09:26 +00:00
pbar.update(0)
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user