<s> __all__ = [ '<STR_LIT>' ] <EOL> from . . common import * <EOL> import urllib <EOL> import re <EOL> def suntv_download ( url , output_dir = '<STR_LIT:.>' , merge = True , info_only = False , ** kwargs ) : <EOL> if re . match ( r'<STR_LIT>' , url ) : <EOL> API_URL = "<STR_LIT>" <EOL> itemid = match1 ( url , r'<STR_LIT>' ) <EOL> values = { "<STR_LIT>" : itemid , "<STR_LIT>" : "<STR_LIT>" } <EOL> data = str ( values ) . replace ( "<STR_LIT:'>" , '<STR_LIT:">' ) <EOL> data = data . encode ( '<STR_LIT:utf-8>' ) <EOL> req = urllib . request . Request ( API_URL , data ) <EOL> req . add_header ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> resp = urllib . request . urlopen ( req ) <EOL> respData = resp . read ( ) <EOL> respData = respData . decode ( '<STR_LIT:ascii>' ) . strip ( '<STR_LIT:">' ) <EOL> video_url = '<STR_LIT>' + str ( respData ) <EOL> html = get_content ( url , decoded = False ) <EOL> html = html . decode ( '<STR_LIT>' ) <EOL> title = match1 ( html , '<STR_LIT>' ) . strip ( ) <EOL> type_ = '<STR_LIT>' <EOL> size = <NUM_LIT:0> <EOL> type , ext , size = url_info ( video_url ) <EOL> print_info ( site_info , title , type , size ) <EOL> if not info_only : <EOL> download_urls ( [ url ] , title , '<STR_LIT>' , size , output_dir , merge = merge ) <EOL> site_info = "<STR_LIT>" <EOL> download = suntv_download <EOL> download_playlist = playlist_not_supported ( '<STR_LIT>' ) </s>
