Spaces:
Sleeping
Sleeping
JiaenLiu
commited on
Commit
·
575055d
1
Parent(s):
ff51822
small fix
Browse filesFormer-commit-id: 016a328b78ce840ce5be40380e9b2ff480994eae
SRT.py
CHANGED
@@ -180,12 +180,12 @@ class SRT_script():
|
|
180 |
# TODO: need a smarter solution
|
181 |
|
182 |
if i < len(lines):
|
183 |
-
if "
|
184 |
lines.remove(lines[i])
|
185 |
if i == len(lines) - 1:
|
186 |
break
|
187 |
try:
|
188 |
-
seg.translation = lines[i].split(":" or ":
|
189 |
except:
|
190 |
seg.translation = lines[i]
|
191 |
#print(lines[i])
|
|
|
180 |
# TODO: need a smarter solution
|
181 |
|
182 |
if i < len(lines):
|
183 |
+
if "Note:" in lines[i]: # to avoid note
|
184 |
lines.remove(lines[i])
|
185 |
if i == len(lines) - 1:
|
186 |
break
|
187 |
try:
|
188 |
+
seg.translation = lines[i].split(":" or ":")[1]
|
189 |
except:
|
190 |
seg.translation = lines[i]
|
191 |
#print(lines[i])
|