<s> __all__ = [ '<STR_LIT>' ] <EOL> from . . common import * <EOL> def video_info ( channel_id , program_id , volumn_id ) : <EOL> url = '<STR_LIT>' <EOL> if program_id : <EOL> url += '<STR_LIT>' <EOL> url += '<STR_LIT>' % channel_id <EOL> url += '<STR_LIT>' % program_id <EOL> url += '<STR_LIT>' % volumn_id <EOL> else : <EOL> url += '<STR_LIT>' <EOL> url += '<STR_LIT>' % volumn_id <EOL> xml = get_html ( url ) <EOL> name = r1 ( r'<STR_LIT>' , xml ) <EOL> urls = re . findall ( r'<STR_LIT>' , xml ) <EOL> hostpath = r1 ( r'<STR_LIT>' , xml ) <EOL> return name , urls , hostpath <EOL> def joy_download ( url , output_dir = '<STR_LIT:.>' , merge = True , info_only = False , ** kwargs ) : <EOL> channel_id = r1 ( r'<STR_LIT>' , get_html ( url ) ) <EOL> program_id = r1 ( r'<STR_LIT>' , get_html ( url ) ) <EOL> volumn_id = r1 ( r'<STR_LIT>' , get_html ( url ) ) <EOL> title , urls , hostpath = video_info ( channel_id , program_id , volumn_id ) <EOL> urls = [ hostpath + url for url in urls ] <EOL> size = <NUM_LIT:0> <EOL> for url in urls : <EOL> _ , ext , temp = url_info ( url ) <EOL> size += temp <EOL> print_info ( site_info , title , ext , size ) <EOL> if not info_only : <EOL> download_urls ( urls , title , ext , size , output_dir = output_dir , merge = merge ) <EOL> site_info = "<STR_LIT>" <EOL> download = joy_download <EOL> download_playlist = playlist_not_supported ( '<STR_LIT>' ) </s>
