Maybe format these strings ?
This commit is contained in:
parent
7f287353a4
commit
4375262ab0
@ -61,12 +61,12 @@ def crop_image(file):
|
|||||||
|
|
||||||
def generate_concat(images, dest):
|
def generate_concat(images, dest):
|
||||||
if os.path.exists(dest):
|
if os.path.exists(dest):
|
||||||
if input("Overwrite {dest} ? [y/N] ").lower() != "y":
|
if input(f"Overwrite {dest} ? [y/N] ").lower() != "y":
|
||||||
return
|
return
|
||||||
|
|
||||||
content = "ffconcat version 1.0"
|
content = "ffconcat version 1.0"
|
||||||
for img in images:
|
for img in images:
|
||||||
content += "\nfile {img}\nduration 8"
|
content += f"\nfile {img}\nduration 8"
|
||||||
|
|
||||||
with open(dest, "w") as f:
|
with open(dest, "w") as f:
|
||||||
f.write(content)
|
f.write(content)
|
||||||
|
Loading…
Reference in New Issue
Block a user