added the ability to get all artist's songs as suggested by #366 (#389)

* added the ability to get all artist's songs as suggested by #366

* added log to featch_all_albums_from_artist function and removed the use of a uri

* updated the functionality to get all albums with the ability to get singles

* updated main function with new write_all_albums_from_artist function to get all albums from an artist

* fixed typos

* updated test case for getting all albums from artist

* fixed typos
This commit is contained in:
AlfredoSequeida
2018-10-10 23:53:10 -07:00
committed by Ritiek Malhotra
parent e554b4252c
commit 2b42f0b3a1
4 changed files with 74 additions and 1 deletions

View File

@@ -214,6 +214,7 @@ def main():
log.debug("Platform: {}".format(platform.platform()))
log.debug(pprint.pformat(const.args.__dict__))
try:
if const.args.song:
download_single(raw_song=const.args.song)
@@ -227,6 +228,8 @@ def main():
spotify_tools.write_playlist(playlist_url=const.args.playlist)
elif const.args.album:
spotify_tools.write_album(album_url=const.args.album)
elif const.args.all_albums:
spotify_tools.write_all_albums_from_artist(artist_url=const.args.all_albums)
elif const.args.username:
spotify_tools.write_user_playlist(username=const.args.username)