[olympics] Add uploader and cleanup (#1990)

Authored by: u-spec-png
This commit is contained in:
u-spec-png 2021-12-14 17:15:50 +00:00 committed by GitHub
parent 53dad39e30
commit 069c6ccf02
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,6 +19,7 @@ class OlympicsReplayIE(InfoExtractor):
'upload_date': '20210801', 'upload_date': '20210801',
'timestamp': 1627783200, 'timestamp': 1627783200,
'description': 'md5:c66af4a5bc7429dbcc43d15845ff03b3', 'description': 'md5:c66af4a5bc7429dbcc43d15845ff03b3',
'uploader': 'International Olympic Committee',
}, },
'params': { 'params': {
'skip_download': True, 'skip_download': True,
@ -61,10 +62,8 @@ def _real_extract(self, url):
return { return {
'id': uuid, 'id': uuid,
'title': title, 'title': title,
'timestamp': json_ld.get('timestamp'),
'description': json_ld.get('description'),
'thumbnails': thumbnails, 'thumbnails': thumbnails,
'duration': json_ld.get('duration'),
'formats': formats, 'formats': formats,
'subtitles': subtitles, 'subtitles': subtitles,
**json_ld
} }