projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
deef319
)
[extractor/common] Extract view count from JSON-LD
author
Sergey M․
<dstftw@gmail.com>
Sun, 30 Apr 2017 14:11:55 +0000
(21:11 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 30 Apr 2017 14:45:59 +0000
(21:45 +0700)
youtube_dl/extractor/common.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/common.py
b/youtube_dl/extractor/common.py
index 2cb55d6af826db72ff3539aa88c3c2f0768e38e6..fba15d446e9f2c52e3159c1142af499484f13648 100644
(file)
--- 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: