projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[vuclip] Fix extraction
[youtube-dl]
/
youtube_dl
/
extractor
/
dailymotion.py
diff --git
a/youtube_dl/extractor/dailymotion.py
b/youtube_dl/extractor/dailymotion.py
index aa595af20f66445559784afbcbb5a54a38eb69aa..db10b8d00b7482b157bd9dd0ecc9ef9b8191ce88 100644
(file)
--- a/
youtube_dl/extractor/dailymotion.py
+++ b/
youtube_dl/extractor/dailymotion.py
@@
-52,6
+52,7
@@
class DailymotionIE(DailymotionBaseInfoExtractor):
'ext': 'mp4',
'uploader': 'IGN',
'title': 'Steam Machine Models, Pricing Listed on Steam Store - IGN News',
'ext': 'mp4',
'uploader': 'IGN',
'title': 'Steam Machine Models, Pricing Listed on Steam Store - IGN News',
+ 'upload_date': '20150306',
}
},
# Vevo video
}
},
# Vevo video
@@
-106,9
+107,9
@@
class DailymotionIE(DailymotionBaseInfoExtractor):
age_limit = self._rta_search(webpage)
video_upload_date = None
age_limit = self._rta_search(webpage)
video_upload_date = None
- mobj = re.search(r'<
div class="[^"]*uploaded_cont[^"]*" title="[^"]*">([0-9]{2})-([0-9]{2})-([0-9]{4})</div
>', webpage)
+ mobj = re.search(r'<
meta property="video:release_date" content="([0-9]{4})-([0-9]{2})-([0-9]{2}).+?"/
>', webpage)
if mobj is not None:
if mobj is not None:
- video_upload_date = mobj.group(
3) + mobj.group(2) + mobj.group(1
)
+ video_upload_date = mobj.group(
1) + mobj.group(2) + mobj.group(3
)
embed_url = 'https://www.dailymotion.com/embed/video/%s' % video_id
embed_request = self._build_request(embed_url)
embed_url = 'https://www.dailymotion.com/embed/video/%s' % video_id
embed_request = self._build_request(embed_url)