projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
540b9f5
)
[extractor/common] Extract author as uploader for VideoObject in _json_ld
author
Sergey M․
<dstftw@gmail.com>
Fri, 18 Sep 2020 23:13:42 +0000
(06:13 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 18 Sep 2020 23:13:42 +0000
(06:13 +0700)
youtube_dl/extractor/common.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/common.py
b/youtube_dl/extractor/common.py
index f740ddad1176599f56e0204a3bec67c1151183b0..c9b8b63377f1fac16ca35812b944274da7cebe14 100644
(file)
--- a/
youtube_dl/extractor/common.py
+++ b/
youtube_dl/extractor/common.py
@@
-1268,6
+1268,7
@@
class InfoExtractor(object):
'thumbnail': url_or_none(e.get('thumbnailUrl') or e.get('thumbnailURL')),
'duration': parse_duration(e.get('duration')),
'timestamp': unified_timestamp(e.get('uploadDate')),
+ 'uploader': str_or_none(e.get('author')),
'filesize': float_or_none(e.get('contentSize')),
'tbr': int_or_none(e.get('bitrate')),
'width': int_or_none(e.get('width')),