feat: v1.3.3
fix: an edge case bug that could potentially cause data loss when generating the final folder fix: a bug where the encode would attempt to use the source index file, generating a new one in it's place incorrectly (this was present in ffms2)
This commit is contained in:
parent
69f76e6164
commit
d27d3d0653
@ -7,7 +7,7 @@ from frame_forge.cli_utils import frame_list
|
|||||||
|
|
||||||
|
|
||||||
program_name = "FrameForge"
|
program_name = "FrameForge"
|
||||||
__version__ = "1.3.2"
|
__version__ = "1.3.3"
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
@ -398,7 +398,10 @@ class GenerateImages:
|
|||||||
)
|
)
|
||||||
|
|
||||||
if image_output_dir.exists():
|
if image_output_dir.exists():
|
||||||
shutil.rmtree(image_output_dir, ignore_errors=True)
|
for folder in ("img_comparison", "img_selected", "img_sync"):
|
||||||
|
rm_path = image_output_dir / folder
|
||||||
|
if rm_path.is_dir() and rm_path.exists():
|
||||||
|
shutil.rmtree(rm_path, ignore_errors=True)
|
||||||
|
|
||||||
image_output_dir.mkdir(exist_ok=True, parents=True)
|
image_output_dir.mkdir(exist_ok=True, parents=True)
|
||||||
|
|
||||||
@ -688,7 +691,7 @@ class GenerateImages:
|
|||||||
self.source_index_path = Path(self.source_index_path)
|
self.source_index_path = Path(self.source_index_path)
|
||||||
|
|
||||||
if not self.encode_index_path or not Path(self.encode_index_path).exists():
|
if not self.encode_index_path or not Path(self.encode_index_path).exists():
|
||||||
encode_path_obj = Path(self.source_file)
|
encode_path_obj = Path(self.encode_file)
|
||||||
self.encode_index_path = encode_path_obj.parent / Path(
|
self.encode_index_path = encode_path_obj.parent / Path(
|
||||||
f"{encode_path_obj.stem}{indexer_ext}"
|
f"{encode_path_obj.stem}{indexer_ext}"
|
||||||
)
|
)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "frame-forge"
|
name = "frame-forge"
|
||||||
version = "1.0.3"
|
version = "1.3.3"
|
||||||
description = "CLI to offload image generation to"
|
description = "CLI to offload image generation to"
|
||||||
authors = ["jlw4049 <jlw_4049@hotmail.com>"]
|
authors = ["jlw4049 <jlw_4049@hotmail.com>"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
Loading…
Reference in New Issue
Block a user