1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-24 00:33:27 +00:00

Fixed big loop from subzero modification module

Co-authored-by: vitiko98
This commit is contained in:
Vitiko 2021-04-15 07:47:30 -04:00 committed by GitHub
parent a20e570de1
commit 56958488b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -275,8 +275,13 @@ class SubtitleModifications(object):
logger.debug(u"Skipping empty line: %s", index)
continue
line_split = t.split(r"\N")
if len(line_split) > 3: # Badly parsed subtitle
logger.error("Skipping %d lines for %s mod", len(line_split), mods)
continue
skip_entry = False
for line in t.split(r"\N"):
for line in line_split:
# don't bother the mods with surrounding tags
old_line = line
line = line.strip()