<s> from . . common import * <EOL> def theplatform_download_by_pid ( pid , title , output_dir = '<STR_LIT:.>' , merge = True , info_only = False , ** kwargs ) : <EOL> smil_url = "<STR_LIT>" % pid <EOL> smil = get_content ( smil_url ) <EOL> smil_base = unescape_html ( match1 ( smil , r'<STR_LIT>' ) ) <EOL> smil_videos = { y : x for x , y in dict ( re . findall ( r'<STR_LIT>' , smil ) ) . items ( ) } <EOL> for height in [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] : <EOL> if height in smil_videos : <EOL> smil_video = smil_videos [ height ] <EOL> break <EOL> assert smil_video <EOL> type , ext , size = '<STR_LIT>' , '<STR_LIT>' , <NUM_LIT:0> <EOL> print_info ( site_info , title , type , size ) <EOL> if not info_only : <EOL> download_rtmp_url ( url = smil_base , title = title , ext = ext , params = { "<STR_LIT>" : ext + '<STR_LIT::>' + smil_video } , output_dir = output_dir ) <EOL> site_info = "<STR_LIT>" <EOL> download = theplatform_download_by_pid <EOL> download_playlist = playlist_not_supported ( '<STR_LIT>' ) </s>
