diff options
| author | Sergey M․ <dstftw@gmail.com> | 2017-04-30 21:11:55 +0700 |
|---|---|---|
| committer | Sergey M․ <dstftw@gmail.com> | 2017-04-30 21:45:59 +0700 |
| commit | 33a81c2c6f4bd180ef69d5631862637ae0c8ec8e (patch) | |
| tree | 098e66e88f33ce2b0b5632838a3aaf72d1dba26d /youtube_dl/extractor/common.py | |
| parent | deef31955bb6106939606cd2a8b677db700055e3 (diff) | |
[extractor/common] Extract view count from JSON-LD
Diffstat (limited to 'youtube_dl/extractor/common.py')
| -rw-r--r-- | youtube_dl/extractor/common.py | 1 |
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: |
