@@ -221,7 +221,6 @@ NO_MATCHING_SUBTITLE_PAIRS_FOUND = texts.NO_MATCHING_SUBTITLE_PAIRS_FOUND[LANGUA
221221NO_SUBTITLE_PAIRS_TO_PROCESS = texts .NO_SUBTITLE_PAIRS_TO_PROCESS [LANGUAGE ]
222222# Log window messages
223223SYNCING_LOG_TEXT = texts .SYNCING_LOG_TEXT [LANGUAGE ]
224-
225224INVALID_PARENT_ITEM = texts .INVALID_PARENT_ITEM [LANGUAGE ]
226225SKIP_NO_VIDEO_NO_SUBTITLE = texts .SKIP_NO_VIDEO_NO_SUBTITLE [LANGUAGE ]
227226SKIP_NO_SUBTITLE = texts .SKIP_NO_SUBTITLE [LANGUAGE ]
@@ -290,8 +289,6 @@ REMOVED_ITEM = texts.REMOVED_ITEM[LANGUAGE]
290289FILES_MUST_CONTAIN_PATTERNS = texts .FILES_MUST_CONTAIN_PATTERNS [LANGUAGE ]
291290NO_VALID_SUBTITLE_FILES = texts .NO_VALID_SUBTITLE_FILES [LANGUAGE ]
292291default_encoding = sys .getfilesystemencoding ()
293- # ffsubsync path
294- ffs_exe_path = r"../python_embedded\scripts\ffs.exe"
295292# Icon fix
296293ctypes .windll .shell32 .SetCurrentProcessExplicitAppUserModelID ((PROGRAM_NAME + "." + VERSION ).lower ())
297294def update_config (key , value ):
@@ -1736,7 +1733,7 @@ def start_batch_sync():
17361733 )
17371734 suffix += 1
17381735 if sync_tool == SYNC_TOOL_FFSUBSYNC :
1739- cmd = f'" { ffs_exe_path } " "{ video_file } " -i "{ subtitle_file } " -o "{ output_subtitle_file } "'
1736+ cmd = f'ffs "{ video_file } " -i "{ subtitle_file } " -o "{ output_subtitle_file } "'
17401737 if not video_file .lower ().endswith (tuple (SUBTITLE_EXTENSIONS )):
17411738 if ffsubsync_option_framerate_var .get ():
17421739 cmd += " --no-fix-framerate"
@@ -3216,7 +3213,7 @@ def start_automatic_sync():
32163213
32173214 def build_cmd ():
32183215 if sync_tool == SYNC_TOOL_FFSUBSYNC :
3219- cmd = f'" { ffs_exe_path } " "{ video_file } " -i "{ subtitle_file } " -o "{ output_subtitle_file } "'
3216+ cmd = f'ffs "{ video_file } " -i "{ subtitle_file } " -o "{ output_subtitle_file } "'
32203217 if not video_file .lower ().endswith (tuple (SUBTITLE_EXTENSIONS )):
32213218 if ffsubsync_option_framerate_var .get ():
32223219 cmd += " --no-fix-framerate"
0 commit comments