fix dailymotion for #609
diff --git a/src/you_get/extractors/dailymotion.py b/src/you_get/extractors/dailymotion.py
index 8e8851aa3e..988920bb8a 100644
--- a/src/you_get/extractors/dailymotion.py
+++ b/src/you_get/extractors/dailymotion.py
@@ -8,16 +8,12 @@ def dailymotion_download(url, output_dir = '.', merge = True, info_only = False)
     """Downloads Dailymotion videos by URL.
     """
 
-    id = match1(url, r'/video/([^\?]+)') or match1(url, r'video=([^\?]+)')
-    embed_url = 'http://www.dailymotion.com/embed/video/%s' % id
-    html = get_content(embed_url)
+    html = get_content(url)
+    info = json.loads(match1(html, r'qualities":({.+?}),"'))
+    title = match1(html, r'"title"\s*:\s*"(.+?)",')
 
-    info = json.loads(match1(html, r'var\s*info\s*=\s*({.+}),\n'))
-
-    title = info['title']
-
-    for quality in ['stream_h264_hd1080_url', 'stream_h264_hd_url', 'stream_h264_hq_url', 'stream_h264_url', 'stream_h264_ld_url']:
-        real_url = info[quality]
+    for quality in ['720','480','380','240','auto']:
+        real_url = info[quality][0]["url"]
         if real_url:
             break
 

<!-- Reviewable:start -->

[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/soimort/you-get/614)

<!-- Reviewable:end -->
