]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[extractor/common] Extract view count from JSON-LD
authorSergey M․ <dstftw@gmail.com>
Sun, 30 Apr 2017 14:11:55 +0000 (21:11 +0700)
committerSergey M․ <dstftw@gmail.com>
Sun, 30 Apr 2017 14:45:59 +0000 (21:45 +0700)
youtube_dl/extractor/common.py

index 2cb55d6af826db72ff3539aa88c3c2f0768e38e6..fba15d446e9f2c52e3159c1142af499484f13648 100644 (file)
@@ -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: