projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[udemy] Initial support for free courses (#1617)
[youtube-dl]
/
youtube_dl
/
extractor
/
vevo.py
diff --git
a/youtube_dl/extractor/vevo.py
b/youtube_dl/extractor/vevo.py
index fa147a5757df04ca69bac2e3dc6054fe6d2a7797..7c97b9b364efc8c47ef3594e4382222ba2b09d5a 100644
(file)
--- a/
youtube_dl/extractor/vevo.py
+++ b/
youtube_dl/extractor/vevo.py
@@
-2,7
+2,6
@@
from __future__ import unicode_literals
import re
import xml.etree.ElementTree
import re
import xml.etree.ElementTree
-import datetime
from .common import InfoExtractor
from ..utils import (
from .common import InfoExtractor
from ..utils import (
@@
-58,6
+57,7
@@
class VevoIE(InfoExtractor):
'title': 'Tunnel Vision (Explicit)',
'uploader': 'Justin Timberlake',
'upload_date': '20130704',
'title': 'Tunnel Vision (Explicit)',
'uploader': 'Justin Timberlake',
'upload_date': '20130704',
+ 'upload_timestamp': 1372906800,
},
'params': {
'skip_download': 'true',
},
'params': {
'skip_download': 'true',
@@
-169,13
+169,13
@@
class VevoIE(InfoExtractor):
timestamp_ms = int(self._search_regex(
r'/Date\((\d+)\)/', video_info['launchDate'], 'launch date'))
timestamp_ms = int(self._search_regex(
r'/Date\((\d+)\)/', video_info['launchDate'], 'launch date'))
- upload_date = datetime.datetime.fromtimestamp(timestamp_ms // 1000)
+
return {
'id': video_id,
'title': video_info['title'],
'formats': formats,
'thumbnail': video_info['imageUrl'],
return {
'id': video_id,
'title': video_info['title'],
'formats': formats,
'thumbnail': video_info['imageUrl'],
- 'upload_
date': upload_date.strftime('%Y%m%d')
,
+ 'upload_
timestamp': timestamp_ms // 1000
,
'uploader': video_info['mainArtists'][0]['artistName'],
'duration': video_info['duration'],
'age_limit': age_limit,
'uploader': video_info['mainArtists'][0]['artistName'],
'duration': video_info['duration'],
'age_limit': age_limit,