Skip to content

Commit 743508d

Browse files
authored
v3.3fix2
1 parent 2c974df commit 743508d

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

main/AutoSubSync.pyw

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,6 @@ NO_MATCHING_SUBTITLE_PAIRS_FOUND = texts.NO_MATCHING_SUBTITLE_PAIRS_FOUND[LANGUA
221221
NO_SUBTITLE_PAIRS_TO_PROCESS = texts.NO_SUBTITLE_PAIRS_TO_PROCESS[LANGUAGE]
222222
# Log window messages
223223
SYNCING_LOG_TEXT = texts.SYNCING_LOG_TEXT[LANGUAGE]
224-
225224
INVALID_PARENT_ITEM = texts.INVALID_PARENT_ITEM[LANGUAGE]
226225
SKIP_NO_VIDEO_NO_SUBTITLE = texts.SKIP_NO_VIDEO_NO_SUBTITLE[LANGUAGE]
227226
SKIP_NO_SUBTITLE = texts.SKIP_NO_SUBTITLE[LANGUAGE]
@@ -290,8 +289,6 @@ REMOVED_ITEM = texts.REMOVED_ITEM[LANGUAGE]
290289
FILES_MUST_CONTAIN_PATTERNS = texts.FILES_MUST_CONTAIN_PATTERNS[LANGUAGE]
291290
NO_VALID_SUBTITLE_FILES = texts.NO_VALID_SUBTITLE_FILES[LANGUAGE]
292291
default_encoding = sys.getfilesystemencoding()
293-
# ffsubsync path
294-
ffs_exe_path = r"../python_embedded\scripts\ffs.exe"
295292
# Icon fix
296293
ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID((PROGRAM_NAME+"."+VERSION).lower())
297294
def 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

Comments
 (0)