Skip to content

Commit

Permalink
[extractor/common] Extract author as uploader for VideoObject in _jso…
Browse files Browse the repository at this point in the history
…n_ld
  • Loading branch information
dstftw committed Sep 18, 2020
1 parent 540b9f5 commit ad06b99
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions youtube_dl/extractor/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -1268,6 +1268,7 @@ def extract_video_object(e):
'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')),
Expand Down

0 comments on commit ad06b99

Please sign in to comment.