mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-12-27 10:18:23 +00:00
[vevo] Fix timestamp handling
( / 1000 is implicit float division )
This commit is contained in:
parent
43d7895ea0
commit
912cbf5d4e
1 changed files with 3 additions and 3 deletions
|
@ -58,9 +58,9 @@ class VevoIE(InfoExtractor):
|
||||||
'width': int(attr['frameWidth']),
|
'width': int(attr['frameWidth']),
|
||||||
})
|
})
|
||||||
|
|
||||||
date_epoch = int(self._search_regex(
|
timestamp_ms = int(self._search_regex(
|
||||||
r'/Date\((\d+)\)/', video_info['launchDate'], u'launch date'))/1000
|
r'/Date\((\d+)\)/', video_info['launchDate'], u'launch date'))
|
||||||
upload_date = datetime.datetime.fromtimestamp(date_epoch)
|
upload_date = datetime.datetime.fromtimestamp(timestamp_ms // 1000)
|
||||||
info = {
|
info = {
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
'title': video_info['title'],
|
'title': video_info['title'],
|
||||||
|
|
Loading…
Reference in a new issue