aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/ninegag.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-12-05 18:29:07 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2013-12-05 18:29:07 +0100
commit19e3dfc9f8444a1341a6e71752a3235a0447a565 (patch)
tree481bdff5ff514467d319f61bd416060309ec6207 /youtube_dl/extractor/ninegag.py
parenta1ef7e85d6834d5e8a9a2171b220a9e3b93dd2cf (diff)
[9gag] Like/dislike count (#1895)
Diffstat (limited to 'youtube_dl/extractor/ninegag.py')
-rw-r--r--youtube_dl/extractor/ninegag.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/youtube_dl/extractor/ninegag.py b/youtube_dl/extractor/ninegag.py
index cc00ffbcc..ea986c00e 100644
--- a/youtube_dl/extractor/ninegag.py
+++ b/youtube_dl/extractor/ninegag.py
@@ -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'],
}