aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2012-10-08 22:14:28 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2012-10-08 22:14:28 +0200
commit27fec0e3bd042968cacfc2adcd2122f3aff7c572 (patch)
tree7d684cd4a9b2c4b31e1de7987cb1d5bae2f490fb /youtube_dl
parent65f934dc930f7996e137d61dd80ef092f9075532 (diff)
parentaa85963987b610864979cfbcacfa7636a3972309 (diff)
Merge branch 'master' of github.com:rg3/youtube-dl
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/InfoExtractors.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py
index 8d428b25d..9e5ea7c61 100644
--- a/youtube_dl/InfoExtractors.py
+++ b/youtube_dl/InfoExtractors.py
@@ -683,11 +683,16 @@ class DailymotionIE(InfoExtractor):
return
video_uploader = mobj.group(1)
+ video_upload_date = u'NA'
+ mobj = re.search(r'<div class="[^"]*uploaded_cont[^"]*" title="[^"]*">([0-9]{2})-([0-9]{2})-([0-9]{4})</div>', webpage)
+ if mobj is not None:
+ video_upload_date = mobj.group(3) + mobj.group(2) + mobj.group(1)
+
return [{
'id': video_id.decode('utf-8'),
'url': video_url.decode('utf-8'),
'uploader': video_uploader.decode('utf-8'),
- 'upload_date': u'NA',
+ 'upload_date': video_upload_date,
'title': video_title,
'ext': video_extension.decode('utf-8'),
'format': u'NA',