#NEWLINE# def _real_extract( self , url ) : #NEWLINE# #INDENT# video_id = self . _match_id ( url ) #NEWLINE# info_data = compat_urllib_parse . urlencode ( { #NEWLINE# #INDENT# 'format' : 'json' , #NEWLINE# 'url' : url , #NEWLINE# #UNINDENT# } ) #NEWLINE# info = self . _download_json ( ( 'http://www.muzu.tv/api/oembed/?%s' % info_data ) , video_id , 'Downloading video info' ) #NEWLINE# player_info = self . _download_json ( ( 'http://player.muzu.tv/player/playerInit?ai=%s' % video_id ) , video_id , 'Downloading player info' ) #NEWLINE# video_info = player_info [ 'videos' ] [ 0 ] #NEWLINE# for quality in [ '1080' , '720' , '480' , '360' ] : #NEWLINE# #INDENT# if video_info . get ( ( 'v%s' % quality ) ) : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# #UNINDENT# data = compat_urllib_parse . urlencode ( { #NEWLINE# #INDENT# 'ai' : video_id , #NEWLINE# 'viewhash' : 'VBNff6djeV4HV5TRPW5kOHub2k' , #NEWLINE# 'device' : 'web' , #NEWLINE# 'qv' : quality , #NEWLINE# #UNINDENT# } ) #NEWLINE# video_url_info = self . _download_json ( ( 'http://player.muzu.tv/player/requestVideo?%s' % data ) , video_id , 'Downloading video url' ) #NEWLINE# video_url = video_url_info [ 'url' ] #NEWLINE# return { #NEWLINE# #INDENT# 'id' : video_id , #NEWLINE# 'title' : info [ 'title' ] , #NEWLINE# 'url' : video_url , #NEWLINE# 'thumbnail' : info [ 'thumbnail_url' ] , #NEWLINE# 'description' : info [ 'description' ] , #NEWLINE# 'uploader' : info [ 'author_name' ] , #NEWLINE# #UNINDENT# }