0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-16 01:25:06 +00:00

Document duration field

This commit is contained in:
Philipp Hagemeister 2013-12-16 04:09:30 +01:00
parent b466b7029d
commit c0ba0f4859

View file

@ -34,8 +34,8 @@ class InfoExtractor(object):
The dictionaries must include the following fields: The dictionaries must include the following fields:
id: Video identifier. id: Video identifier.
url: Final video URL.
title: Video title, unescaped. title: Video title, unescaped.
url: Final video URL.
ext: Video filename extension. ext: Video filename extension.
Instead of url and ext, formats can also specified. Instead of url and ext, formats can also specified.
@ -54,6 +54,7 @@ class InfoExtractor(object):
player_url: SWF Player URL (used for rtmpdump). player_url: SWF Player URL (used for rtmpdump).
subtitles: The subtitle file contents as a dictionary in the format subtitles: The subtitle file contents as a dictionary in the format
{language: subtitles}. {language: subtitles}.
duration: Length of the video in seconds, as an integer.
view_count: How many users have watched the video on the platform. view_count: How many users have watched the video on the platform.
like_count: Number of positive ratings of the video like_count: Number of positive ratings of the video
dislike_count: Number of negative ratings of the video dislike_count: Number of negative ratings of the video