mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-08-22 22:34:01 -07:00
Youtube: Use release_timestamp instead of just timestamp
Signed-off-by: Jon Doron <arilou@gmail.com>
This commit is contained in:
parent
1d7b3aa258
commit
a5325665d5
1 changed files with 2 additions and 8 deletions
|
@ -1813,16 +1813,10 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
||||||
}
|
}
|
||||||
|
|
||||||
live_details = microformat.get('liveBroadcastDetails')
|
live_details = microformat.get('liveBroadcastDetails')
|
||||||
broadcast_start_timestamp = None
|
|
||||||
if live_details:
|
if live_details:
|
||||||
broadcast_start_timestamp = live_details.get('startTimestamp')
|
broadcast_start_timestamp = live_details.get('startTimestamp')
|
||||||
|
if broadcast_start_timestamp:
|
||||||
if broadcast_start_timestamp:
|
info['release_timestamp'] = parse_iso8601(broadcast_start_timestamp)
|
||||||
info['timestamp'] = parse_iso8601(broadcast_start_timestamp)
|
|
||||||
else:
|
|
||||||
info['upload_date'] = unified_strdate(
|
|
||||||
microformat.get('uploadDate')
|
|
||||||
or search_meta('uploadDate'))
|
|
||||||
|
|
||||||
pctr = try_get(
|
pctr = try_get(
|
||||||
player_response,
|
player_response,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue