summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2020-09-19 06:13:42 +0700
committerSergey M․ <dstftw@gmail.com>2020-09-19 06:13:42 +0700
commitad06b99dd47acc8b1bd213f079e1f36da9e3a73d (patch)
treea107bbd2d3879f69db558985f695a7ca5f360b10
parent540b9f5164d50eb99d9c988ece6eb6775ccaf94a (diff)
[extractor/common] Extract author as uploader for VideoObject in _json_ld
-rw-r--r--youtube_dl/extractor/common.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py
index f740ddad1..c9b8b6337 100644
--- 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')),