3 Commits

Author SHA1 Message Date
kelciour 129a948f02 Revert "Replace Popen with check_call"
This reverts commit 34a99fdec0.
2021-02-14 17:31:02 +03:00
kelciour 34a99fdec0 Replace Popen with check_call 2020-10-20 16:39:56 +03:00
kelciour 15db01096f Escape double quotes in filenames 2020-10-20 15:50:28 +03:00
+1
View File
@@ -243,6 +243,7 @@ def play_clips(clips, ending_mode, mpv_options):
with open(pipe_name, "wb", 0) as f_pipe:
for clip_filename, clip_start, clip_end in clips:
clip_filename = clip_filename.replace("\\","/")
clip_filename = clip_filename.replace("\"", "\\\"")
cmd = ["loadfile", '"' + clip_filename + '"']
if ending_mode: