From b0cbd8e242e5702f27a0280f4242510cda8b7007 Mon Sep 17 00:00:00 2001 From: Casey Chu Date: Fri, 9 Oct 2020 20:29:39 -0700 Subject: [PATCH] Update readme --- README.md | 6 +++++- spotify-backup.py | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 24ada1e..d905bb4 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,11 @@ You can run the script from the command line: or, to get a JSON dump, use: - python spotify-backup.py playlists.json + python spotify-backup.py playlists.json --format=json + +By default, it includes your playlists. To include your Liked Songs, you can use: + + python spotify-backup.py playlists.txt --dump=liked,playlists If for some reason the browser-based authorization flow doesn't work, you can also [generate an OAuth token](https://developer.spotify.com/web-api/console/get-playlists/) on the developer site (with the `playlist-read-private` permission) and pass it with the `--token` option. diff --git a/spotify-backup.py b/spotify-backup.py index 942c3eb..0b85be4 100755 --- a/spotify-backup.py +++ b/spotify-backup.py @@ -133,7 +133,7 @@ def main(): + ' an OAuth token with the --token option.') parser.add_argument('--token', metavar='OAUTH_TOKEN', help='use a Spotify OAuth token (requires the ' + '`playlist-read-private` permission)') - parser.add_argument('--dump', default='playlists', choices=['liked,playlists', 'playlists', 'liked'], + parser.add_argument('--dump', default='playlists', choices=['liked,playlists', 'playlists,liked', 'playlists', 'liked'], help='dump playlists or liked songs, or both (default: playlists)') parser.add_argument('--format', default='txt', choices=['json', 'txt'], help='output format (default: txt)') parser.add_argument('file', help='output filename', nargs='?')