1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-17 00:22:34 +01:00
yt-dlp/yt_dlp/downloader
Felix S 25a3f4f5d6
[webvtt] Merge daisy-chained duplicate cues (#638)
Fixes: https://github.com/yt-dlp/yt-dlp/issues/631#issuecomment-893338552

Previous deduplication algorithm only removed duplicate cues with
identical text, styles and timestamps.  This change also merges
cues that come in ‘daisy chains’, where sequences of cues with
identical text and styles appear in which the ending timestamp of
one equals the starting timestamp of the next.

This deduplication algorithm has the somewhat unfortunate side effect
that NOTE blocks between cues, if found, will be emitted in a different
order relative to their original cues.  This may be unwanted if perfect
fidelity is desired, but then so is daisy-chain deduplication itself.
NOTE blocks ought to be ignored by WebVTT players in any case.

Authored by: fstirlitz
2021-08-10 01:52:30 +05:30
..
__init__.py [downloader] Allow streaming unmerged formats to stdout using ffmpeg 2021-08-01 12:38:06 +05:30
common.py [docs] Fix some mistakes and improve doc 2021-08-07 21:41:48 +05:30
dash.py [cleanup] Fix linter in 96fccc101f 2021-08-01 12:52:09 +05:30
external.py [nbcolympics:stream] Fix extractor 2021-08-04 20:41:59 +05:30
f4m.py [downloader] Pass info_dict to progress_hooks 2021-07-22 04:30:11 +05:30
fragment.py [webvtt] Merge daisy-chained duplicate cues (#638) 2021-08-10 01:52:30 +05:30
hls.py [webvtt] Merge daisy-chained duplicate cues (#638) 2021-08-10 01:52:30 +05:30
http.py [downloader] Pass info_dict to progress_hooks 2021-07-22 04:30:11 +05:30
ism.py [downloader] Pass info_dict to progress_hooks 2021-07-22 04:30:11 +05:30
mhtml.py [downloader] Pass info_dict to progress_hooks 2021-07-22 04:30:11 +05:30
niconico.py [cleanup] Refactor some code 2021-08-01 12:38:05 +05:30
rtmp.py [downloader] Pass info_dict to progress_hooks 2021-07-22 04:30:11 +05:30
rtsp.py [downloader] Pass info_dict to progress_hooks 2021-07-22 04:30:11 +05:30
websocket.py [websockets] Add WebSocketFragmentFD (#399) 2021-06-21 22:56:36 +05:30
youtube_live_chat.py [downloader] Pass info_dict to progress_hooks 2021-07-22 04:30:11 +05:30