1
0
mirror of https://gitlab.com/ytdl-org/youtube-dl.git synced 2025-11-10 07:27:06 -05:00
Files
youtube-dl/youtube_dl/extractor/common.py
Yen Chi Hsuan 5968d7d2fe [extractor/common] Improved support for HTML5 subtitles
Ref: #10625

In a strict sense, <track>s with kind=captions are not subtitles. [1]
openload misuses this attribute, and I guess there will be more
examples, so I add it to common.py.

Also allow extracting information for subtitles-only <video> or <audio>
tags, which is the case of openload.

[1] https://www.w3.org/TR/html5/embedded-content-0.html#attr-track-kind
2016-09-24 14:20:42 +08:00

94 KiB