oseiskar/autosubsync

Overwriting unsynced results in empty file

Kieran-Edwards opened this issue · 2 comments

Running autoSubSync with the same srt file input and output results in one empty file. e.g:

Input: plan-9-subs.en.srt: 59kb

Command: autosubsync plan-9-from-outer-space.avi plan-9-subs.en.srt plan-9-subs.en.srt

Output:  plan-9-subs.en.srt: 0kb

Should this be possible? I want to overwrite the existing subs with the synced so i don't have to manually remove the unsynced version.

Hi. Thanks for reporting. Currently, you cannot directly overvwrite the existing file. This case should be handled better in autosubsync: if you try to overwrite the existing file, it should at least give an error and not erase the file.

Ouch, this could have been nasty. I’m glad I saw this before running on all of my subtitles.