Browse Source

[vevo] Interpret date as UTC instead of local time

totalwebcasting
Philipp Hagemeister 11 years ago
parent
commit
e45b31d9bd
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_dl/extractor/vevo.py

+ 1
- 1
youtube_dl/extractor/vevo.py View File

@ -169,7 +169,7 @@ class VevoIE(InfoExtractor):
timestamp_ms = int(self._search_regex( timestamp_ms = int(self._search_regex(
r'/Date\((\d+)\)/', video_info['launchDate'], 'launch date')) r'/Date\((\d+)\)/', video_info['launchDate'], 'launch date'))
upload_date = datetime.datetime.fromtimestamp(timestamp_ms // 1000)
upload_date = datetime.datetime.utcfromtimestamp(timestamp_ms // 1000)
return { return {
'id': video_id, 'id': video_id,
'title': video_info['title'], 'title': video_info['title'],


Loading…
Cancel
Save