Add -p option to directly download playlists with URL (#110)

* Rough implementation of playlist link

* Clean code

* Add information about playlist URL

* Update README.md

* Fix bug where script selects wrong playlist

* Minor improvements

* Minor improvements
This commit is contained in:
Ritiek Malhotra
2017-07-12 13:37:15 +05:30
committed by GitHub
parent ce3a6c3d5a
commit 9564a71035
3 changed files with 73 additions and 23 deletions

View File

@@ -39,9 +39,11 @@ def get_arguments():
'-s', '--song', help='download song by spotify link or name')
group.add_argument(
'-l', '--list', help='download songs from a file')
group.add_argument(
'-p', '--playlist', help='load songs from playlist URL into <playlist_name>.txt')
group.add_argument(
'-u', '--username',
help="load user's playlists into <playlist_name>.txt")
help="load songs from user's playlist into <playlist_name>.txt")
parser.add_argument(
'-m', '--manual', default=False,
help='choose the song to download manually', action='store_true')