]> git.bitcoin.ninja Git - youtube-dl/commit
[extractor/common] Improved support for HTML5 subtitles
authorYen Chi Hsuan <yan12125@gmail.com>
Sat, 24 Sep 2016 06:20:42 +0000 (14:20 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Sat, 24 Sep 2016 06:20:42 +0000 (14:20 +0800)
commit5968d7d2fe619e85eb424d6e47d000f0b295d4a2
tree4904d66b01becf7fb71e5e3cf0c91a5448ae9feb
parente6332059ac66bfc91ed18e5b15d9238e4283ee7a
[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
ChangeLog
youtube_dl/extractor/common.py