<s> __all__ = [ '<STR_LIT>' ] <EOL> from . . common import * <EOL> def bandcamp_download ( url , output_dir = '<STR_LIT:.>' , merge = True , info_only = False , ** kwargs ) : <EOL> html = get_html ( url ) <EOL> trackinfo = json . loads ( r1 ( r'<STR_LIT>' , html ) ) <EOL> for track in trackinfo : <EOL> track_num = track [ '<STR_LIT>' ] <EOL> title = '<STR_LIT>' % ( track_num , track [ '<STR_LIT:title>' ] ) <EOL> file_url = '<STR_LIT>' + track [ '<STR_LIT:file>' ] [ '<STR_LIT>' ] <EOL> mime , ext , size = url_info ( file_url ) <EOL> print_info ( site_info , title , mime , size ) <EOL> if not info_only : <EOL> download_urls ( [ file_url ] , title , ext , size , output_dir , merge = merge ) <EOL> site_info = "<STR_LIT>" <EOL> download = bandcamp_download <EOL> download_playlist = bandcamp_download </s>
