DeepL translation works
This commit is contained in:
@@ -133,7 +133,7 @@ public class JSONSubtitleConverter implements SubtitleConverter<SubtitleImpl> {
|
||||
if (newLength > maxLineLength * maxLines) {
|
||||
final var newSubtitle = new SubtitleImpl(builder.toString(), currentStart, currentEnd, null, null);
|
||||
ret.add(newSubtitle);
|
||||
builder.delete(0, builder.length());
|
||||
builder.setLength(0);
|
||||
builder.append(text);
|
||||
currentStart = start == 0 ? currentEnd : start;
|
||||
} else if (areDifferentLines(builder.length(), newLength, maxLineLength)) {
|
||||
|
||||
Reference in New Issue
Block a user