Document duration field
authorPhilipp Hagemeister <phihag@phihag.de>
Mon, 16 Dec 2013 03:09:30 +0000 (04:09 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Mon, 16 Dec 2013 03:09:43 +0000 (04:09 +0100)
youtube_dl/extractor/common.py

index 69a083b68aa3cee7d8ec2a6af9af7108a28bdf9b..fe8ce9e6c7ad2c76bfa3cc0233a7cb28ef30e707 100644 (file)
@@ -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