Skip to content

Commit

Permalink
Added uploaded date for Dailymotion
Browse files Browse the repository at this point in the history
  • Loading branch information
Tailszefox committed Oct 3, 2012
1 parent b7b4796 commit 413575f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion youtube_dl/InfoExtractors.py
Expand Up @@ -683,11 +683,16 @@ def _real_extract(self, url):
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',
Expand Down

0 comments on commit 413575f

Please sign in to comment.