diff --git a/lib/svtplay_dl/subtitle/__init__.py b/lib/svtplay_dl/subtitle/__init__.py index 73d0aec..8d700c4 100644 --- a/lib/svtplay_dl/subtitle/__init__.py +++ b/lib/svtplay_dl/subtitle/__init__.py @@ -353,7 +353,7 @@ def _wrstsegments(entries: list, convert=False) -> str: time = 0 subs = [] for cont in entries: - cont = re.sub(r"\n\n\d+\n", "\n", cont) # remove sequence numbers + cont = re.sub(r"\n\n[-0-9a-f\d]+\n", "\n", cont) # remove sequence numbers text = cont.split("\n") for t in text: # is in text[1] for tv4play, but this should be more future proof if "X-TIMESTAMP-MAP=MPEGTS" in t: