#NEWLINE# def qq_download_by_vid( vid , title , output_dir = '.' , merge = True , info_only = False ) : #NEWLINE# #INDENT# api = ( 'http://h5vv.video.qq.com/getinfo?otype=json&platform=10901&vid=%s' % vid ) #NEWLINE# content = get_html ( api ) #NEWLINE# output_json = json . loads ( match1 ( content , 'QZOutputJson=(.*)' ) [ : ( - 1 ) ] ) #NEWLINE# url = output_json [ 'vl' ] [ 'vi' ] [ 0 ] [ 'ul' ] [ 'ui' ] [ 0 ] [ 'url' ] #NEWLINE# fvkey = output_json [ 'vl' ] [ 'vi' ] [ 0 ] [ 'fvkey' ] #NEWLINE# url = ( '%s/%s.mp4?vkey=%s' % ( url , vid , fvkey ) ) #NEWLINE# ( _ , ext , size ) = url_info ( url , faker = True ) #NEWLINE# print_info ( site_info , title , ext , size ) #NEWLINE# if ( not info_only ) : #NEWLINE# #INDENT# download_urls ( [ url ] , title , ext , size , output_dir = output_dir , merge = merge )