fix: MAP used the wrong SRT as the time data source

This commit is contained in:
Emmanuel BENOîT 2025-04-08 10:53:27 +02:00
parent d1307762b4
commit 01e6f84f0b
Signed by: Emmanuel BENOîT
SSH key fingerprint: SHA256:l7PFUUF5TCDsvYeQC9OnTNz08dFY7Fvf4Hv3neIqYpg

View file

@ -181,7 +181,7 @@ class SRTMerger:
def handle_map(self, text_source, text_start, time_start, count):
time_source = text_source
text_list = self.srt1 if text_source == 1 else self.srt2
time_list = self.srt1 if time_source == 1 else self.srt2
time_list = self.srt2 if time_source == 1 else self.srt1
text_start_idx = text_start - 1
time_start_idx = time_start - 1
if (text_start_idx < 0 or text_start_idx + count > len(text_list) or