aboutsummaryrefslogtreecommitdiffhomepage
path: root/youtube_dl/extractor/dailymotion.py
diff options
context:
space:
mode:
authorTithen-Firion <[email protected]>2017-05-01 20:37:23 +0200
committerSergey M <[email protected]>2017-05-02 01:37:23 +0700
commitd86d169dd5bcefc35e13aa8274ac3b30c701cd87 (patch)
treeaa90d869fa8c1c2f449ff0aa2d6c3dccbf3d1cdf /youtube_dl/extractor/dailymotion.py
parentb9f9f361fa93ffaff0146a1f0ce9920770d1891c (diff)
downloadyoutube-dl-d86d169dd5bcefc35e13aa8274ac3b30c701cd87.tar.gz
youtube-dl-d86d169dd5bcefc35e13aa8274ac3b30c701cd87.zip
[dailymotion] Add working test
Diffstat (limited to 'youtube_dl/extractor/dailymotion.py')
-rw-r--r--youtube_dl/extractor/dailymotion.py21
1 files changed, 20 insertions, 1 deletions
diff --git a/youtube_dl/extractor/dailymotion.py b/youtube_dl/extractor/dailymotion.py
index 246efde43..441114d19 100644
--- a/youtube_dl/extractor/dailymotion.py
+++ b/youtube_dl/extractor/dailymotion.py
@@ -51,6 +51,24 @@ class DailymotionIE(DailymotionBaseInfoExtractor):
_TESTS = [
{
+ 'url': 'http://www.dailymotion.com/video/x5kesuj_office-christmas-party-review-jason-bateman-olivia-munn-t-j-miller_news',
+ 'md5': '074b95bdee76b9e3654137aee9c79dfe',
+ 'info_dict': {
+ 'id': 'x5kesuj',
+ 'ext': 'mp4',
+ 'title': 'Office Christmas Party Review – Jason Bateman, Olivia Munn, T.J. Miller',
+ 'description': 'Office Christmas Party Review - Jason Bateman, Olivia Munn, T.J. Miller',
+ 'thumbnail': r're:^https?:.*\.(?:jpg|png)$',
+ 'duration': 187,
+ 'timestamp': 1493651285,
+ 'upload_date': '20170501',
+ 'uploader': 'Deadline',
+ 'uploader_id': 'x1xm8ri',
+ 'age_limit': 0,
+ 'view_count': int,
+ },
+ },
+ {
'url': 'https://www.dailymotion.com/video/x2iuewm_steam-machine-models-pricing-listed-on-steam-store-ign-news_videogames',
'md5': '2137c41a8e78554bb09225b8eb322406',
'info_dict': {
@@ -66,7 +84,8 @@ class DailymotionIE(DailymotionBaseInfoExtractor):
'uploader_id': 'xijv66',
'age_limit': 0,
'view_count': int,
- }
+ },
+ 'skip': 'video gone',
},
# Vevo video
{