Sync branches (#667)

This commit is contained in:
Stéphane Bruckert authored and GitHub committed 2021-04-10 15:40:09 +01:00
1 parent 07fec53288
commit 4fe6350cb4
4 files changed
+9 -9

No files matched your search

+6 -7
View File
@@ -14,13 +14,6 @@ Rebasing master onto v3 doesn't require a changelog update.
* `Scope` - An enum which contains all of the authorization scopes (see [here](https://github.com/plamere/spotipy/issues/652#issuecomment-797461311)). * `Scope` - An enum which contains all of the authorization scopes (see [here](https://github.com/plamere/spotipy/issues/652#issuecomment-797461311)).
* Added the following endpoints
* `Spotify.current_user_saved_episodes`
* `Spotify.current_user_saved_episodes_add`
* `Spotify.current_user_saved_episodes_delete`
* `Spotify.current_user_saved_episodes_contains`
* `Spotify.available_markets`
### Changed ### Changed
* Made `CacheHandler` an abstract base class * Made `CacheHandler` an abstract base class
@@ -36,6 +29,12 @@ Rebasing master onto v3 doesn't require a changelog update.
- Enabled using both short and long IDs for playlist_change_details - Enabled using both short and long IDs for playlist_change_details
- Added a cache handler to `SpotifyClientCredentials` - Added a cache handler to `SpotifyClientCredentials`
- Added the following endpoints
* `Spotify.current_user_saved_episodes`
* `Spotify.current_user_saved_episodes_add`
* `Spotify.current_user_saved_episodes_delete`
* `Spotify.current_user_saved_episodes_contains`
* `Spotify.available_markets`
### Changed ### Changed
+1
View File
@@ -1,3 +1,4 @@
#Shows the list of all songs sung by the artist or the band
import argparse import argparse
import logging import logging
+1
View File
@@ -1,3 +1,4 @@
#Shows the name of the artist/band and their image by giving a link
import sys import sys
from spotipy.oauth2 import SpotifyClientCredentials from spotipy.oauth2 import SpotifyClientCredentials
+1 -2
View File
@@ -1221,7 +1221,6 @@ class Spotify(object):
- limit - the number of tracks to return - limit - the number of tracks to return
- offset - the index of the first track to return - offset - the index of the first track to return
- market - an ISO 3166-1 alpha-2 country code - market - an ISO 3166-1 alpha-2 country code
""" """
return self._get("me/tracks", limit=limit, offset=offset, market=market) return self._get("me/tracks", limit=limit, offset=offset, market=market)
@@ -1347,6 +1346,7 @@ class Spotify(object):
Parameters: Parameters:
- shows - a list of show URIs, URLs or IDs - shows - a list of show URIs, URLs or IDs
""" """
slist = [self._get_id("show", s) for s in shows] slist = [self._get_id("show", s) for s in shows]
return self._get("me/shows/contains?ids=" + ",".join(slist)) return self._get("me/shows/contains?ids=" + ",".join(slist))
@@ -1878,7 +1878,6 @@ class Spotify(object):
def available_markets(self): def available_markets(self):
""" Get the list of markets where Spotify is available. """ Get the list of markets where Spotify is available.
Returns a list of the countries in which Spotify is available, identified by their Returns a list of the countries in which Spotify is available, identified by their
ISO 3166-1 alpha-2 country code with additional country codes for special territories. ISO 3166-1 alpha-2 country code with additional country codes for special territories.
""" """