🐛 Fix timelapse snapshots for files with % in the name (#4366)

Fixes #4365
This commit is contained in:
jneilliii authored and GitHub committed 2022-02-10 18:30:20 +01:00
1 parent 08e2106b0f
commit 6430b239b2
1 file changed
+2 -1
+2 -1
View File
@@ -604,7 +604,8 @@ class Timelapse:
self._in_timelapse = True
self._gcode_file = os.path.basename(gcode_file)
self._file_prefix = "{}_{}".format(
os.path.splitext(self._gcode_file)[0], time.strftime("%Y%m%d%H%M%S")
os.path.splitext(self._gcode_file)[0].replace("%", "%%"),
time.strftime("%Y%m%d%H%M%S"),
)
def stop_timelapse(self, do_create_movie=True, success=True):