def dailymotion_download(url, output_dir='<STR_LIT:.>', merge=True, info_only=False, **kwargs):
html = get_content(rebuilt_url(url))<EOL>info = json.loads(match1(html, r'<STR_LIT>'))<EOL>title = match1(html, r'<STR_LIT>') ormatch1(html, r'<STR_LIT>')<EOL>title = unicodize(title)<EOL>for quality in ['<STR_LIT>','<STR_LIT>','<STR_LIT>','<STR_LIT>','<STR_LIT>','<STR_LIT>','<STR_LIT>']:<EOL><INDENT>try:<EOL><INDENT>real_url = info[quality][<NUM_LIT:1>]["<STR_LIT:url>"]<EOL>if real_url:<EOL><INDENT>break<EOL><DEDENT><DEDENT>except KeyError:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>mime, ext, size = url_info(real_url)<EOL>print_info(site_info, title, mime, size)<EOL>if not info_only:<EOL><INDENT>download_urls([real_url], title, ext, size, output_dir=output_dir, merge=merge)<EOL><DEDENT>
Downloads Dailymotion videos by URL.