Skip to content

Commit

Permalink
Merge pull request #6 from CevreMuhendisi/main
Browse files Browse the repository at this point in the history
FIx: Syntax error
  • Loading branch information
MaKTaiL authored Oct 24, 2024
2 parents a8486e9 + 53a3247 commit a6b87eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gemini_srt_translator/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def _process_batch(self, chat: ChatSession, batch: list[SubtitleObject], transla
if line["index"] not in [x["index"] for x in batch]:
raise Exception("Gemini has returned different indices.")
if self.dominant_strong_direction(line["content"]) == "rtl":
translated_subtitle[int(line["index"])].content = f"\u202B{line["content"]}\u202C"
translated_subtitle[int(line["index"])].content = f"\u202B{line['content']}\u202C"
else:
translated_subtitle[int(line["index"])].content = line["content"]
batch.clear()
Expand Down

0 comments on commit a6b87eb

Please sign in to comment.