mirror of
https://gitlab.com/dstftw/youtube-dl.git
synced 2020-11-16 09:42:26 +00:00
Reorder info_dict documentation
This commit is contained in:
parent
d7dda16888
commit
d67b0b1596
|
@ -35,33 +35,9 @@ class InfoExtractor(object):
|
||||||
|
|
||||||
id: Video identifier.
|
id: Video identifier.
|
||||||
title: Video title, unescaped.
|
title: Video title, unescaped.
|
||||||
url: Final video URL.
|
|
||||||
ext: Video filename extension.
|
|
||||||
|
|
||||||
Instead of url and ext, formats can also specified.
|
Additionally, it must contain either a formats entry or url and ext:
|
||||||
|
|
||||||
The following fields are optional:
|
|
||||||
|
|
||||||
format: The video format, defaults to ext (used for --get-format)
|
|
||||||
thumbnails: A list of dictionaries (with the entries "resolution" and
|
|
||||||
"url") for the varying thumbnails
|
|
||||||
thumbnail: Full URL to a video thumbnail image.
|
|
||||||
description: One-line video description.
|
|
||||||
uploader: Full name of the video uploader.
|
|
||||||
upload_date: Video upload date (YYYYMMDD).
|
|
||||||
uploader_id: Nickname or id of the video uploader.
|
|
||||||
location: Physical location of the video.
|
|
||||||
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
|
|
||||||
comment_count: Number of comments on the video
|
|
||||||
urlhandle: [internal] The urlHandle to be used to download the file,
|
|
||||||
like returned by urllib.request.urlopen
|
|
||||||
age_limit: Age restriction for the video, as an integer (years)
|
|
||||||
formats: A list of dictionaries for each format available, it must
|
formats: A list of dictionaries for each format available, it must
|
||||||
be ordered from worst to best quality. Potential fields:
|
be ordered from worst to best quality. Potential fields:
|
||||||
* url Mandatory. The URL of the video file
|
* url Mandatory. The URL of the video file
|
||||||
|
@ -81,6 +57,32 @@ class InfoExtractor(object):
|
||||||
* vbr Average video bitrate in KBit/s
|
* vbr Average video bitrate in KBit/s
|
||||||
* vcodec Name of the video codec in use
|
* vcodec Name of the video codec in use
|
||||||
* filesize The number of bytes, if known in advance
|
* filesize The number of bytes, if known in advance
|
||||||
|
* player_url SWF Player URL (used for rtmpdump).
|
||||||
|
url: Final video URL.
|
||||||
|
ext: Video filename extension.
|
||||||
|
format: The video format, defaults to ext (used for --get-format)
|
||||||
|
player_url: SWF Player URL (used for rtmpdump).
|
||||||
|
urlhandle: [internal] The urlHandle to be used to download the file,
|
||||||
|
like returned by urllib.request.urlopen
|
||||||
|
|
||||||
|
The following fields are optional:
|
||||||
|
|
||||||
|
thumbnails: A list of dictionaries (with the entries "resolution" and
|
||||||
|
"url") for the varying thumbnails
|
||||||
|
thumbnail: Full URL to a video thumbnail image.
|
||||||
|
description: One-line video description.
|
||||||
|
uploader: Full name of the video uploader.
|
||||||
|
upload_date: Video upload date (YYYYMMDD).
|
||||||
|
uploader_id: Nickname or id of the video uploader.
|
||||||
|
location: Physical location of the video.
|
||||||
|
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
|
||||||
|
comment_count: Number of comments on the video
|
||||||
|
age_limit: Age restriction for the video, as an integer (years)
|
||||||
webpage_url: The url to the video webpage, if given to youtube-dl it
|
webpage_url: The url to the video webpage, if given to youtube-dl it
|
||||||
should allow to get the same result again. (It will be set
|
should allow to get the same result again. (It will be set
|
||||||
by YoutubeDL if it's missing)
|
by YoutubeDL if it's missing)
|
||||||
|
|
Loading…
Reference in a new issue