commit: 33a81c2c6f4bd180ef69d5631862637ae0c8ec8e
parent deef31955bb6106939606cd2a8b677db700055e3
Author: Sergey M․ <dstftw@gmail.com>
Date: Sun, 30 Apr 2017 21:11:55 +0700
[extractor/common] Extract view count from JSON-LD
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py
@@ -990,6 +990,7 @@ class InfoExtractor(object):
'tbr': int_or_none(e.get('bitrate')),
'width': int_or_none(e.get('width')),
'height': int_or_none(e.get('height')),
+ 'view_count': int_or_none(e.get('interactionCount')),
})
for e in json_ld: