aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/webvtt.py
Commit message (Collapse)AuthorAgeFilesLines
* [webvtt] Handle premature EOFMarcel2022-11-201-1/+1
| | | | | Closes #2867, closes #5600 Authored by: flashdagger
* [docs] Misc improvementspukkandan2022-09-221-1/+0
| | | | Closes #4987, Closes #4906, Closes #4919, Closes #4977, Closes #4979
* [webvtt, extractor/youtube] Extract auto-subs from livestream VODspukkandan2022-07-311-5/+18
| | | | | | Closes #4130 Authored by: pukkandan, fstirlitz
* Remove Python 3.6 supportpukkandan2022-07-181-1/+1
| | | | Closes #3764
* [cleanup] Minor fixes (See desc)pukkandan2022-05-091-1/+1
| | | | | | | | | | * [youtube] Fix `--youtube-skip-dash-manifest` * [build] Use `$()` in `Makefile`. Closes #3684 * Fix bug in 385ffb467b2285e85a2a5495b90314ba1f8e0700 * Fix bug in 43d7f5a5d0c77556156a3f8caa6976d3908a1e38 * [cleanup] Remove unnecessary `utf-8` from `str.encode`/`bytes.decode` * [utils] LazyList: Expose unnecessarily "protected" attributes and other minor cleanup
* [compat] Split into sub-modules (#2173)felix2022-04-181-4/+3
| | | | Authored by: fstirlitz, pukkandan
* [cleanup] Misc cleanup and refactor (#2173)pukkandan2022-04-181-8/+2
|
* [cleanup] Sort importspukkandan2022-04-121-5/+3
| | | | | | Using https://github.com/PyCQA/isort isort -m VERTICAL_HANGING_INDENT --py 36 -l 80 --rr -n --tc .
* [cleanup] Upgrade syntaxpukkandan2022-04-121-7/+4
| | | | | | | | | | Using https://github.com/asottile/pyupgrade 1. `__future__` imports and `coding: utf-8` were removed 2. Files were rewritten with `pyupgrade --py36-plus --keep-percent-format` 3. f-strings were cherry-picked from `pyupgrade --py36-plus` Extractors are left untouched (except removing header) to avoid unnecessary merge conflicts
* [cleanup] Mark some compat variables for removal (#2173)pukkandan2022-04-121-1/+0
| | | | Authored by fstirlitz, pukkandan
* [utils] Standardize timestamp formatting codepukkandan2021-10-191-6/+2
| | | | Closes #1285
* [WebVTT] Adjust parser to accommodate PBS subtitles (#922)pukkandan2021-09-081-2/+7
| | | Closes #921
* [webvtt] Merge daisy-chained duplicate cues (#638)Felix S2021-08-101-0/+20
| | | | | | | | | | | | | | | | | 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
* [webtt] Fix timestampspukkandan2021-07-121-6/+5
| | | | Closes #474
* [downloader/hls] Remove duplicate cues using a sliding window of candidatesFelix S2021-04-281-0/+10
|
* [downloader/hls] Assemble single-file WebVTT subtitles from HLS segmentsFelix S2021-04-281-0/+368