Spaces:
Sleeping
Sleeping
worldqwq
commited on
Commit
·
19531bb
1
Parent(s):
a33eef8
changed line 116
Browse filesFormer-commit-id: c2eecc7a5b90d20c6f671f0b25264f82af8d4833
SRT.py
CHANGED
@@ -113,7 +113,11 @@ class SRT_script():
|
|
113 |
lines.remove(lines[i])
|
114 |
if i == len(lines) - 1:
|
115 |
break
|
116 |
-
|
|
|
|
|
|
|
|
|
117 |
pass
|
118 |
|
119 |
def split_seg(self, seg_id):
|
|
|
113 |
lines.remove(lines[i])
|
114 |
if i == len(lines) - 1:
|
115 |
break
|
116 |
+
try:
|
117 |
+
seg.translation = lines[i].split(":" or ": ")[1]
|
118 |
+
except:
|
119 |
+
seg.translation = lines[i]
|
120 |
+
#print(lines[i])
|
121 |
pass
|
122 |
|
123 |
def split_seg(self, seg_id):
|