A feature-rich command-line audio/video downloader
[9gag] Like/dislike count (#1895)
Philipp Hagemeister19e3dfc9f844
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.pyindex 1b049082de..92a0c50508 100644--- a/youtube_dl/extractor/common.py+++ b/youtube_dl/extractor/common.py@@ -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 videourlhandle: [internal] The urlHandle to be used to download the file,like returned by urllib.request.urlopenage_limit: Age restriction for the video, as an integer (years)diff --git a/youtube_dl/extractor/ninegag.py b/youtube_dl/extractor/ninegag.pyindex cc00ffbcc9..ea986c00e7 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'],}