yt-dlp/yt_dlp
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
..
downloader [webvtt] Merge daisy-chained duplicate cues (#638) 2021-08-10 01:52:30 +05:30
extractor [viki] Print error message from API request 2021-08-10 01:21:22 +05:30
postprocessor Misc fixes - See desc 2021-08-10 01:22:55 +05:30
__init__.py Misc fixes - See desc 2021-08-10 01:22:55 +05:30
__main__.py [cleanup] Point all shebang to python3 (#372) 2021-06-06 00:59:04 +05:30
aes.py
cache.py
compat.py [compat] Remove unnecessary code 2021-07-20 03:46:05 +05:30
cookies.py [cookies] Handle errors when importing keyring 2021-07-23 19:58:27 +05:30
jsinterp.py
options.py Misc fixes - See desc 2021-08-10 01:22:55 +05:30
socks.py
swfinterp.py.disabled [cleanup] Mark unused files 2021-06-06 00:59:04 +05:30
update.py [build] Build Windows x86 version with py3.7 2021-06-10 01:41:04 +05:30
utils.py [cleanup] Misc 2021-08-07 21:17:07 +05:30
version.py [version] update 2021-08-02 10:41:58 +05:30
webvtt.py [webvtt] Merge daisy-chained duplicate cues (#638) 2021-08-10 01:52:30 +05:30
YoutubeDL.py Misc fixes - See desc 2021-08-10 01:22:55 +05:30