You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
3 years ago
..
downloader [webvtt] Merge daisy-chained duplicate cues (#638) 3 years ago
extractor [viki] Print error message from API request 3 years ago
postprocessor Misc fixes - See desc 3 years ago
YoutubeDL.py Misc fixes - See desc 3 years ago
__init__.py Misc fixes - See desc 3 years ago
__main__.py [cleanup] Point all shebang to `python3` (#372) 3 years ago
aes.py Completely change project name to yt-dlp (#85) 4 years ago
cache.py Completely change project name to yt-dlp (#85) 4 years ago
compat.py [compat] Remove unnecessary code 3 years ago
cookies.py [cookies] Handle errors when importing `keyring` 3 years ago
jsinterp.py Completely change project name to yt-dlp (#85) 4 years ago
options.py Misc fixes - See desc 3 years ago
socks.py Completely change project name to yt-dlp (#85) 4 years ago
swfinterp.py.disabled [cleanup] Mark unused files 3 years ago
update.py [build] Build Windows x86 version with py3.7 3 years ago
utils.py [cleanup] Misc 3 years ago
version.py [version] update 3 years ago
webvtt.py [webvtt] Merge daisy-chained duplicate cues (#638) 3 years ago