diff options
| author | Philipp Hagemeister <phihag@phihag.de> | 2013-10-04 10:40:42 +0200 | 
|---|---|---|
| committer | Philipp Hagemeister <phihag@phihag.de> | 2013-10-04 10:40:42 +0200 | 
| commit | deefc05b88d68b82a43d2ab154986362860e2202 (patch) | |
| tree | 6ab614ff9276b814e8bb47b4f23040b4125e4fe6 | |
| parent | 0d8cb1cc14cde1b17385901ff97b8525bcc1cc5e (diff) | |
Document formats (for #980)
| -rw-r--r-- | youtube_dl/extractor/common.py | 15 | 
1 files changed, 13 insertions, 2 deletions
| diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index 77726ee24..b577c9e6d 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -52,8 +52,19 @@ class InfoExtractor(object):      view_count:     How many users have watched the video on the platform.      urlhandle:      [internal] The urlHandle to be used to download the file,                      like returned by urllib.request.urlopen - -    The fields should all be Unicode strings. +    formats:        A list of dictionaries for each format available, it must +                    be ordered from worst to best quality. Potential fields: +                    * url       Mandatory. The URL of the video file +                    * ext       Will be calculated from url if missing +                    * format    A human-readable description of the format +                                ("mp4 container with h264/opus"). +                                Calculated from width and height if missing. +                    * format_id A short description of the format +                                ("mp4_h264_opus" or "19") +                    * width     Width of the video, if known +                    * height    Height of the video, if known + +    Unless mentioned otherwise, the fields should be Unicode strings.      Subclasses of this one should re-define the _real_initialize() and      _real_extract() methods and define a _VALID_URL regexp. | 
