aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/vevo.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-10-29 14:00:01 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2013-10-29 14:00:23 +0100
commit912cbf5d4ef5b131af88e63815863c389083d077 (patch)
tree5a8c88d84b50eb9fb264c31a30c40f5060356212 /youtube_dl/extractor/vevo.py
parent43d7895ea0f706c390bba30e1249bf4453e173bc (diff)
[vevo] Fix timestamp handling
( / 1000 is implicit float division )
Diffstat (limited to 'youtube_dl/extractor/vevo.py')
-rw-r--r--youtube_dl/extractor/vevo.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/youtube_dl/extractor/vevo.py b/youtube_dl/extractor/vevo.py
index 1c1cc418d..26ec9fa1b 100644
--- a/youtube_dl/extractor/vevo.py
+++ b/youtube_dl/extractor/vevo.py
@@ -58,9 +58,9 @@ class VevoIE(InfoExtractor):
'width': int(attr['frameWidth']),
})
- date_epoch = int(self._search_regex(
- r'/Date\((\d+)\)/', video_info['launchDate'], u'launch date'))/1000
- upload_date = datetime.datetime.fromtimestamp(date_epoch)
+ timestamp_ms = int(self._search_regex(
+ r'/Date\((\d+)\)/', video_info['launchDate'], u'launch date'))
+ upload_date = datetime.datetime.fromtimestamp(timestamp_ms // 1000)
info = {
'id': video_id,
'title': video_info['title'],