Add an option to grab an album (#142)

This commit is contained in:
Valérian Galliat
2017-10-08 10:13:55 -04:00
committed by Ritiek Malhotra
parent 98d21bbad9
commit 237b4cca7e
3 changed files with 58 additions and 10 deletions

View File

@@ -88,6 +88,9 @@ optional arguments:
-p PLAYLIST, --playlist PLAYLIST
load songs from playlist URL into <playlist_name>.txt
(default: None)
-b ALBUM, --album ALBUM
load songs from album URL into <album_name>.txt
(default: None)
-u USERNAME, --username USERNAME
load songs from user's playlist into
<playlist_name>.txt (default: None)
@@ -165,6 +168,18 @@ For example
- Then you can simply run `python3 spotdl.py --list=<playlist_name>.txt` to download all the tracks.
#### Download albums
- You can copy the Spotify URL of the album and pass it in `--album` option.
For example
- `python3 spotdl.py --album https://open.spotify.com/album/7CjakTZxwIF8oixONe6Bpb`
- The script will load all the tracks from the album into `<album_name>.txt`
- Then you can simply run `python3 spotdl.py --list=<album_name>.txt` to download all the tracks.
#### Download playlists by username
- You can also load songs using Spotify username if you don't have the playlist URL. (Open profile in Spotify, click on the three little dots below name, "Share", "Copy to clipboard", paste last numbers into command-line: `https://open.spotify.com/user/0123456790`)