def main():
	args = dl.parse_arguments(VERSION)

	if args.album:
		for a in args.album:
			album = get_album(a)
			if album:
				folder = dl.make_folder(album['name'])
				download_songs(album['songs'], folder)
	if args.song:
		songs = get_songs(args.song)
		if songs:
			folder = dl.make_folder('')
			download_songs(songs, folder)

	if args.search:
		search(' '.join(args.search))
def main():
	args = dl.parse_arguments(VERSION)

	if args.album:
		for a in args.album:
			album = get_song_list(a)
			song_list = get_song_link(album['songIdList'])
			folder = dl.make_folder(album['albumName'])
			download_songs(song_list, folder)

	if args.song:
		song_list = get_song_link(args.song)
		folder = dl.make_folder('')
		download_songs(song_list, folder)

	if args.search:
		search(' '.join(args.search))
def main():
    args = dl.parse_arguments(VERSION)

    if args.album:
        for a in args.album:
            album = get_song_list(a)
            song_list = get_song_link(album['songIdList'])
            folder = dl.make_folder(album['albumName'])
            download_songs(song_list, folder)

    if args.song:
        song_list = get_song_link(args.song)
        folder = dl.make_folder('')
        download_songs(song_list, folder)

    if args.search:
        search(' '.join(args.search))
Exemple #4
0
def main():
    args = dl.parse_arguments(VERSION)

    if args.album:
        for a in args.album:
            album = get_album(a)
            if album:
                folder = dl.make_folder(album['name'])
                download_songs(album['songs'], folder)
    if args.song:
        songs = get_songs(args.song)
        if songs:
            folder = dl.make_folder('')
            download_songs(songs, folder)

    if args.search:
        search(' '.join(args.search))