MCPcopy
hub / github.com/spotipy-dev/spotipy / current_user_saved_albums_add

Method current_user_saved_albums_add

spotipy/client.py:1398–1406  ·  view source on GitHub ↗

Add one or more albums to the current user's "Your Music" library. Parameters: - albums - a list of album URIs, URLs or IDs

(self, albums=[])

Source from the content-addressed store, hash-verified

1396 return self._get("me/albums", limit=limit, offset=offset, market=market)
1397
1398 def current_user_saved_albums_add(self, albums=[]):
1399 """ Add one or more albums to the current user's
1400 "Your Music" library.
1401 Parameters:
1402 - albums - a list of album URIs, URLs or IDs
1403 """
1404
1405 alist = [self._get_uri("album", a) for a in albums]
1406 return self._put("me/library", uris=",".join(alist))
1407
1408 def current_user_saved_albums_delete(self, albums=[]):
1409 """ Remove one or more albums from the current user's

Callers 1

Calls 2

_get_uriMethod · 0.95
_putMethod · 0.95

Tested by 1