fix: correct command part counts in read_commands
This commit is contained in:
parent
9a57fc40b7
commit
5b2c6c8259
1 changed files with 3 additions and 3 deletions
|
@ -40,7 +40,7 @@ class SRTMerger:
|
||||||
continue
|
continue
|
||||||
command = parts[0].upper()
|
command = parts[0].upper()
|
||||||
if command == 'COPY':
|
if command == 'COPY':
|
||||||
if len(parts) != 4:
|
if len(parts) != 3:
|
||||||
continue
|
continue
|
||||||
try:
|
try:
|
||||||
source = int(parts[1])
|
source = int(parts[1])
|
||||||
|
@ -53,7 +53,7 @@ class SRTMerger:
|
||||||
continue
|
continue
|
||||||
commands.append(('COPY', source, start, end))
|
commands.append(('COPY', source, start, end))
|
||||||
elif command == 'MAP':
|
elif command == 'MAP':
|
||||||
if len(parts) != 6:
|
if len(parts) != 5:
|
||||||
continue
|
continue
|
||||||
try:
|
try:
|
||||||
text_source = int(parts[1])
|
text_source = int(parts[1])
|
||||||
|
@ -68,7 +68,7 @@ class SRTMerger:
|
||||||
continue
|
continue
|
||||||
commands.append(('MAP', text_source, text_start, time_start, count))
|
commands.append(('MAP', text_source, text_start, time_start, count))
|
||||||
elif command == 'SYNC':
|
elif command == 'SYNC':
|
||||||
if len(parts) != 5:
|
if len(parts) != 4:
|
||||||
continue
|
continue
|
||||||
try:
|
try:
|
||||||
text_source = int(parts[1])
|
text_source = int(parts[1])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue