[downloader/hls] Remove duplicate cues using a sliding window of candidates
This commit is contained in:
parent
4a2f19abbd
commit
333217f43e
2 changed files with 35 additions and 0 deletions
|
|
@ -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):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue