Skip to content

Commit bc8b37f

Browse files
committed
Check file exist
1 parent 63f1c57 commit bc8b37f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vidcutter/libs/videoservice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def cut(self, source: str, output: str, frametime: str, duration: str, allstream
238238
cut_arg = '-ss {0} -i "{1}" -t {2} -vf "fps=24,scale=iw*min(1\,min(640/iw\,360/ih)):-2" "{3}"'
239239
merged_arg = '{0} --fps 24 --output "{1}"'
240240

241-
if gifOutput:
241+
if gifOutput and not os.path.exists(gif_dir):
242242
os.mkdir(png_dir)
243243
self.cmdExec(self.backend,
244244
cut_arg.format(frametime, source, duration, png_dir + png_frame))

0 commit comments

Comments
 (0)