mirror of
https://github.com/l1ving/youtube-dl
synced 2024-11-25 10:12:53 +08:00
[9gag] Like/dislike count (#1895)
This commit is contained in:
parent
a1ef7e85d6
commit
19e3dfc9f8
@ -55,6 +55,9 @@ class InfoExtractor(object):
|
||||
subtitles: The subtitle file contents as a dictionary in the format
|
||||
{language: subtitles}.
|
||||
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)
|
||||
|
@ -37,5 +37,7 @@ class NineGagIE(InfoExtractor):
|
||||
'title': data['title'],
|
||||
'description': data['description'],
|
||||
'view_count': int(data['view_count']),
|
||||
'like_count': int(data['statistic']['like']),
|
||||
'dislike_count': int(data['statistic']['dislike']),
|
||||
'thumbnail': data['thumbnail_url'],
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user