[youtube] Do not return upload_date for playlists

Closes #2349
Partially reverts #1018
Re-opens #1883
This commit is contained in:
pukkandan 2022-01-19 19:05:57 +05:30
parent baf599effa
commit 66f7c6a3e0
No known key found for this signature in database
GPG key ID: 0F00D95A001F4698

View file

@ -839,7 +839,7 @@ class YoutubeBaseInfoExtractor(InfoExtractor):
'uploader': uploader, 'uploader': uploader,
'channel_id': channel_id, 'channel_id': channel_id,
'thumbnails': thumbnails, 'thumbnails': thumbnails,
'upload_date': strftime_or_none(timestamp, '%Y%m%d'), # 'upload_date': strftime_or_none(timestamp, '%Y%m%d'),
'live_status': ('is_upcoming' if scheduled_timestamp is not None 'live_status': ('is_upcoming' if scheduled_timestamp is not None
else 'was_live' if 'streamed' in time_text.lower() else 'was_live' if 'streamed' in time_text.lower()
else 'is_live' if overlay_style is not None and overlay_style == 'LIVE' or 'live now' in badges else 'is_live' if overlay_style is not None and overlay_style == 'LIVE' or 'live now' in badges