summary refs log tree commit diff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-04-30 21:11:55 +0700
committerSergey M․ <dstftw@gmail.com>2017-04-30 21:45:59 +0700
commit33a81c2c6f4bd180ef69d5631862637ae0c8ec8e (patch)
tree098e66e88f33ce2b0b5632838a3aaf72d1dba26d
parentdeef31955bb6106939606cd2a8b677db700055e3 (diff)
downloadyoutube-dl-33a81c2c6f4bd180ef69d5631862637ae0c8ec8e.tar.gz
youtube-dl-33a81c2c6f4bd180ef69d5631862637ae0c8ec8e.tar.xz
youtube-dl-33a81c2c6f4bd180ef69d5631862637ae0c8ec8e.zip
[extractor/common] Extract view count from JSON-LD
-rw-r--r--youtube_dl/extractor/common.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py
index 2cb55d6af..fba15d446 100644
--- 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: