Maybe format these strings ?

This commit is contained in:
augustin64 2024-09-02 10:13:50 +02:00
parent 7f287353a4
commit 4375262ab0

View File

@ -61,12 +61,12 @@ def crop_image(file):
def generate_concat(images, dest):
if os.path.exists(dest):
if input("Overwrite {dest} ? [y/N] ").lower() != "y":
if input(f"Overwrite {dest} ? [y/N] ").lower() != "y":
return
content = "ffconcat version 1.0"
for img in images:
content += "\nfile {img}\nduration 8"
content += f"\nfile {img}\nduration 8"
with open(dest, "w") as f:
f.write(content)