From d9294ad205d6ad8c95dcedc9c552620f7d7552ed Mon Sep 17 00:00:00 2001 From: sathyabhat Date: Thu, 27 Apr 2017 13:39:23 +0530 Subject: [PATCH] v2.5 - download using spotify playlist URL --- README.md | 8 ++++---- README.rst | 31 ++++++++++++++++--------------- build.bat | 0 build.sh | 4 ++++ setup.py | 2 +- 5 files changed, 25 insertions(+), 20 deletions(-) mode change 100644 => 100755 build.bat create mode 100755 build.sh diff --git a/README.md b/README.md index 0e611f3b..9d038c0e 100644 --- a/README.md +++ b/README.md @@ -30,13 +30,13 @@ Pre-requisite: You need Python 3+ 3. Create your YouTube API key & fetch the keys from [Google Developer Console](https://console.developers.google.com/apis/api/youtube/overview). Set the key as `YOUTUBE_DEV_KEY` environment variable as mentioned above. 4. Run the script using `spotify_dl`. spotify_dl accepts different parameters, for more details run `spotify_dl -h`. - For most users `spotify_dl -i spotify_URI -o download_directory` should do where + For most users `spotify_dl -l spotify_playlist_link -o download_directory` should do where - - `spotify_URI` is Spotify's unique identifier. You can get it from the 3-dot menu. + - `spotify_playlist_link` is a link to Spotify's playlist. You can get it from the 3-dot menu. - ![image](https://cloud.githubusercontent.com/assets/25424/23104884/35962330-f6fc-11e6-91c6-2f0ce074b27c.png) + ![image](https://cloud.githubusercontent.com/assets/25424/25472453/f256c94a-2b48-11e7-8f91-7bfa1ce232c2.png) - If the Spotify URI is skipped then it will download songs from your "My Music" collection + If the Spotify playlist link is skipped then it will download songs from your "My Music" collection - `download_directory` is the location where the songs must be downloaded to. If you give a `.` then it will download to the current directory. Alternatively, `spotify_dl -p playlist_id -u user_name -o download_directory` will also work diff --git a/README.rst b/README.rst index 8f817097..7a8d4926 100644 --- a/README.rst +++ b/README.rst @@ -56,21 +56,22 @@ Pre-requisite: You need Python 3+ 4. Run the script using ``spotify_dl``. spotify\_dl accepts different parameters, for more details run ``spotify_dl -h``. -For most users ``spotify_dl -i spotify_URI -o download_directory`` -should do where +For most users +``spotify_dl -l spotify_playlist_link -o download_directory`` should do +where -- ``spotify_URI`` is Spotify's unique identifier. You can get it from - the 3-dot menu. +- ``spotify_playlist_link`` is a link to Spotify's playlist. You can + get it from the 3-dot menu. -.. figure:: https://cloud.githubusercontent.com/assets/25424/23104884/35962330-f6fc-11e6-91c6-2f0ce074b27c.png +.. figure:: https://cloud.githubusercontent.com/assets/25424/25472453/f256c94a-2b48-11e7-8f91-7bfa1ce232c2.png :alt: image image -If the Spotify URI is skipped then it will download songs from your "My -Music" collection - ``download_directory`` is the location where the -songs must be downloaded to. If you give a ``.`` then it will download -to the current directory. +If the Spotify playlist link is skipped then it will download songs from +your "My Music" collection - ``download_directory`` is the location +where the songs must be downloaded to. If you give a ``.`` then it will +download to the current directory. Alternatively, ``spotify_dl -p playlist_id -u user_name -o download_directory`` will @@ -106,10 +107,10 @@ Credits youtube-dl `__ - `mr-karan `__ for `adding save to directory `__ -- `shantanugoel `__ - for adding in `User - playlist `__, [skip - MP3 conversion]https://github.com/SathyaBhat/spotify-dl/pull/34() and +- `shantanugoel `__ for adding in + `User playlist `__, + `skip MP3 + conversion `__ and `Ability to use custom format string support `__ - `sildur `__ for adding any `user playlist @@ -130,5 +131,5 @@ Issues, Feedback, Contact details Feel free to raise any bugs/issues under Github issues. Pull requests are also more than welcome. You can reach me on twitter at -[@sathyabhat](https://twitter.com/sathyabhat) or drop a mail sathya at -sathyasays dot com +[@sathyabhat](https://twitter.com/sathyabhat) or drop an email +sathya@sathyasays.com diff --git a/build.bat b/build.bat old mode 100644 new mode 100755 diff --git a/build.sh b/build.sh new file mode 100755 index 00000000..a897ea8a --- /dev/null +++ b/build.sh @@ -0,0 +1,4 @@ +rm dist/* +python3 setup.py sdist +python3 setup.py bdist_wheel +twine upload dist/* diff --git a/setup.py b/setup.py index 78bb7a27..5a7b7440 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ with open('requirements.txt') as f: requirements = f.read().splitlines() -version = '2.4' +version = '2.5' setup( name='spotify_dl',