aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-10-04 20:33:42 +0600
committerSergey M․ <dstftw@gmail.com>2015-10-04 20:42:26 +0600
commit4bba371644818d79b5f8481b5b31c53ea8ecbcc5 (patch)
treeddd1447e1224c4944582058dd9401fe332e9ffce /youtube_dl/extractor
parentef5acfe32de4c995625f9800cfe0776237961436 (diff)
[YoutubeDL] Autocalculate ext for subtitles when missing
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/common.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py
index 4fe2307cd..dbae75406 100644
--- a/youtube_dl/extractor/common.py
+++ b/youtube_dl/extractor/common.py
@@ -165,6 +165,7 @@ class InfoExtractor(object):
with the "ext" entry and one of:
* "data": The subtitles file contents
* "url": A URL pointing to the subtitles file
+ "ext" will be calculated from URL if missing
automatic_captions: Like 'subtitles', used by the YoutubeIE for
automatically generated captions
duration: Length of the video in seconds, as an integer.