From: Sergey M․ Date: Sun, 30 Apr 2017 14:11:55 +0000 (+0700) Subject: [extractor/common] Extract view count from JSON-LD X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=33a81c2c6f4bd180ef69d5631862637ae0c8ec8e;p=youtube-dl [extractor/common] Extract view count from JSON-LD --- 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: