remove unneccesary whitespaces, shorten some lines, and add name to contibutors

This commit is contained in:
Harrison 2019-08-12 18:27:10 -05:00 committed by Stephane Bruckert
parent 43a4de0314
commit d8d9f290fb
8 changed files with 48 additions and 44 deletions

View File

@ -362,6 +362,7 @@ Spotipy authored by Paul Lamere (plamere) with contributions by:
- corycorycory // corycorycory - corycorycory // corycorycory
- Nathan Coleman // nathancoleman - Nathan Coleman // nathancoleman
- Michael Birtwell // mbirtwell - Michael Birtwell // mbirtwell
- Harrison Hayes // Harrison97
License License
======= =======

View File

@ -546,9 +546,11 @@ class Spotify(object):
Parameters: Parameters:
- user - the id of the user - user - the id of the user
- playlist_id - the id of the playlist - playlist_id - the id of the playlist
- tracks - an array of objects containing Spotify URIs of the tracks to remove with their current positions in the playlist. For example: - tracks - an array of objects containing Spotify URIs of the
[ { "uri":"4iV5W9uYEdYUVa79Axb7Rh", "positions":[2] }, tracks to remove with their current positions in the
{ "uri":"1301WleyT98MSxVHPZCA6M", "positions":[7] } ] playlist. For example:
[ { "uri":"4iV5W9uYEdYUVa79Axb7Rh", "positions":[2] },
{ "uri":"1301WleyT98MSxVHPZCA6M", "positions":[7] } ]
- snapshot_id - optional id of the playlist snapshot - snapshot_id - optional id of the playlist snapshot
""" """
@ -583,7 +585,8 @@ class Spotify(object):
Parameters: Parameters:
- playlist_owner_id - the user id of the playlist owner - playlist_owner_id - the user id of the playlist owner
- playlist_id - the id of the playlist - playlist_id - the id of the playlist
- user_ids - the ids of the users that you want to check to see if they follow the playlist. Maximum: 5 ids. - user_ids - the ids of the users that you want to check to see
if they follow the playlist. Maximum: 5 ids.
""" """
return self._get("users/{}/playlists/{}/followers/contains?ids={}".format(playlist_owner_id, playlist_id, ','.join(user_ids))) return self._get("users/{}/playlists/{}/followers/contains?ids={}".format(playlist_owner_id, playlist_id, ','.join(user_ids)))