1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-09-03 08:35:32 +00:00

[downloader/hls] Remove duplicate cues using a sliding window of candidates

This commit is contained in:
Felix S
2021-04-23 10:52:21 +02:00
parent 4a2f19abbd
commit 333217f43e
2 changed files with 35 additions and 0 deletions

View File

@ -322,6 +322,16 @@ class CueBlock(Block):
stream.write(self.text)
stream.write('\n')
@property
def as_json(self):
return {
'id': self.id,
'start': self.start,
'end': self.end,
'text': self.text,
'settings': self.settings,
}
def parse_fragment(frag_content):
"""