mirror of
https://github.com/greflm13/StaticGalleryBuilder.git
synced 2026-02-05 11:09:26 +00:00
remove existing bruh
This commit is contained in:
@@ -16,7 +16,7 @@ from modules.generate_html import list_folder, EXCLUDES
|
|||||||
# fmt: off
|
# fmt: off
|
||||||
# Constants
|
# Constants
|
||||||
STATIC_FILES_DIR = os.path.join(os.path.abspath(os.path.dirname(__file__)), "files")
|
STATIC_FILES_DIR = os.path.join(os.path.abspath(os.path.dirname(__file__)), "files")
|
||||||
VERSION = "2.0.0"
|
VERSION = "2.0.1"
|
||||||
RAW_EXTENSIONS = [
|
RAW_EXTENSIONS = [
|
||||||
".3fr", ".ari", ".arw", ".bay", ".braw", ".crw", ".cr2", ".cr3", ".cap", ".data", ".dcs", ".dcr",
|
".3fr", ".ari", ".arw", ".bay", ".braw", ".crw", ".cr2", ".cr3", ".cap", ".data", ".dcs", ".dcr",
|
||||||
".dng", ".drf", ".eip", ".erf", ".fff", ".gpr", ".iiq", ".k25", ".kdc", ".mdc", ".mef", ".mos",
|
".dng", ".drf", ".eip", ".erf", ".fff", ".gpr", ".iiq", ".k25", ".kdc", ".mdc", ".mef", ".mos",
|
||||||
|
|||||||
@@ -175,6 +175,9 @@ def generate_html(folder: str, title: str, _args: Args, raw: List[str]) -> None:
|
|||||||
|
|
||||||
if should_generate_html(images, contains_files, _args):
|
if should_generate_html(images, contains_files, _args):
|
||||||
create_html_file(folder, title, foldername, images, subfolders, _args)
|
create_html_file(folder, title, foldername, images, subfolders, _args)
|
||||||
|
else:
|
||||||
|
if os.path.exists(os.path.join(folder, "index.html")):
|
||||||
|
os.remove(os.path.join(folder, "index.html"))
|
||||||
|
|
||||||
if not _args.non_interactive_mode:
|
if not _args.non_interactive_mode:
|
||||||
pbardict["htmlbar"].update(1)
|
pbardict["htmlbar"].update(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user