aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-12-16 04:09:30 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2013-12-16 04:09:43 +0100
commitc0ba0f485914330d5b4d7b175fb1da3724d4bda0 (patch)
treeda6b055e03d8353c51e3fbbf087a4c7b7f28fc46 /youtube_dl/extractor
parentb466b7029d0af24dc06ecd8bc1f147a39be91c62 (diff)
downloadyoutube-dl-c0ba0f485914330d5b4d7b175fb1da3724d4bda0.zip
youtube-dl-c0ba0f485914330d5b4d7b175fb1da3724d4bda0.tar.gz
youtube-dl-c0ba0f485914330d5b4d7b175fb1da3724d4bda0.tar.bz2
Document duration field
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/common.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py
index 69a083b..fe8ce9e 100644
--- a/youtube_dl/extractor/common.py
+++ b/youtube_dl/extractor/common.py
@@ -34,8 +34,8 @@ class InfoExtractor(object):
The dictionaries must include the following fields:
id: Video identifier.
- url: Final video URL.
title: Video title, unescaped.
+ url: Final video URL.
ext: Video filename extension.
Instead of url and ext, formats can also specified.
@@ -54,6 +54,7 @@ class InfoExtractor(object):
player_url: SWF Player URL (used for rtmpdump).
subtitles: The subtitle file contents as a dictionary in the format
{language: subtitles}.
+ duration: Length of the video in seconds, as an integer.
view_count: How many users have watched the video on the platform.
like_count: Number of positive ratings of the video
dislike_count: Number of negative ratings of the video