projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43d7895
)
[vevo] Fix timestamp handling
author
Philipp Hagemeister
<phihag@phihag.de>
Tue, 29 Oct 2013 13:00:01 +0000
(14:00 +0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Tue, 29 Oct 2013 13:00:23 +0000
(14:00 +0100)
( / 1000 is implicit float division )
youtube_dl/extractor/vevo.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/vevo.py
b/youtube_dl/extractor/vevo.py
index 1c1cc418d29a8897e2a2825492ed7becab75af6b..26ec9fa1b108ba8dab9cf883885bd7d72823adef 100644
(file)
--- 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'],