aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-09-06 01:18:57 +0700
committerSergey M․ <dstftw@gmail.com>2016-09-17 18:31:09 +0700
commita0d5077c8dfa9fa31ebf3e63fdb1b2a7a5182a81 (patch)
treecf979e45a3e849d2ec043bb9c5625203126e736e /youtube_dl/extractor
parent584d6f3457205b547c8969f11eade117f871ec8f (diff)
[extractor/common] Introduce fragments interface
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/common.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py
index c00023458..566ed7a4d 100644
--- a/youtube_dl/extractor/common.py
+++ b/youtube_dl/extractor/common.py
@@ -86,7 +86,9 @@ class InfoExtractor(object):
from worst to best quality.
Potential fields:
- * url Mandatory. The URL of the video file
+ * url Mandatory. The URL of the video file or URL of
+ the manifest file in case of fragmented media
+ (DASH, hls, hds).
* ext Will be calculated from URL if missing
* format A human-readable description of the format
("mp4 container with h264/opus").
@@ -115,6 +117,11 @@ class InfoExtractor(object):
download, lower-case.
"http", "https", "rtsp", "rtmp", "rtmpe",
"m3u8", "m3u8_native" or "http_dash_segments".
+ * fragments A list of fragments of the fragmented media,
+ with the following entries:
+ * "url" (mandatory) - fragment's URL
+ * "duration" (optional, int or float)
+ * "filesize" (optional, int)
* preference Order number of this format. If this field is
present and not None, the formats get sorted
by this field, regardless of all other values.