mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-10-12 09:10:45 +00:00
Clean up of examples
This commit is contained in:
1 parent
6cf9f67c94
commit
34f476d17f
10 files changed
+20
-81
No files matched your search
@@ -1 +1,2 @@
|
||||
VERSION='2.0.0'
|
||||
from client import Spotify, SpotifyException
|
||||
@@ -400,6 +400,17 @@ class Spotify(object):
|
||||
tlist = [self._get_id('track', t) for t in tracks]
|
||||
return self._delete('me/tracks/?ids=' + ','.join(tlist))
|
||||
|
||||
def current_user_saved_tracks_contains(self, tracks=[]):
|
||||
''' Check if one or more tracks is already saved in
|
||||
the current Spotify user’s “Your Music” library.
|
||||
|
||||
Parameters:
|
||||
- tracks - a list of track URIs, URLs or IDs
|
||||
'''
|
||||
tlist = [self._get_id('track', t) for t in tracks]
|
||||
return self._get('me/tracks/contains?ids=' + ','.join(tlist))
|
||||
|
||||
|
||||
def current_user_saved_tracks_add(self, tracks=[]):
|
||||
''' Add one or more tracks to the current user's
|
||||
"Your Music" library.
|
||||
|
||||
Reference in new issue
Block a user