1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-23 19:55:38 +01:00

wrstsegments: remove sequence number

This commit is contained in:
Johan Andersson 2023-01-10 23:05:28 +01:00
parent 77c9b0da98
commit fd0ad54ecb

View File

@ -334,6 +334,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
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: