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:
parent
77c9b0da98
commit
fd0ad54ecb
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user