Closed yuxi-liu-wired closed 4 months ago
Thanks for attaching the files, I was able to reproduce the issue and have pushed a quick fix: https://github.com/machinewrapped/gpt-subtrans/commit/7dbec537ba0d7b7bcd2b9cdfe47718f76b7281d9
Not sure how the project file ended up without a start_line_number, but 1 is a safe bet for a default value.
I have tested the hotfix and confirmed it works.
Here are the test files I used:
test_files.zip
When loading the files in the GUI, I get
This is after I fixed the encoding problem by specifying UTF-8 logging as in #121 .
This is also after I finished the entire translation and the finished
srt
file has been outputted, so the translation has finished correctly. It's just that the loading went wrong. There is no indication of error in the GUI, either. The text is rendered correctly (probably in UTF-8).