def funshion_download_by_url(url, output_dir='.', merge=False, info_only=False):
 if re.match('http://www.fun.tv/vplay/v-(\\w+)', url):
  match = re.search('http://www.fun.tv/vplay/v-(\\d+)(.?)', url)
 vid = match.group(1)
 funshion_download_by_vid(vid, output_dir=output_dir, merge=merge, info_only=info_only)

def funshion_download_by_url ( url , output_dir = '.' , merge = False , info_only = False ) : if re . match ( 'http://www.fun.tv/vplay/v-(\\w+)' , url ) : match = re . search ( 'http://www.fun.tv/vplay/v-(\\d+)(.?)' , url ) vid = match . group ( 1 ) funshion_download_by_vid ( vid , output_dir = output_dir , merge = merge , info_only = info_only )
lots of stuff->none main wrapper for single video download .