Sync branches (#667)

This commit is contained in:
Stéphane Bruckert 2021-04-10 15:40:09 +01:00 committed by GitHub
parent 07fec53288
commit 4fe6350cb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 9 deletions

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

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

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

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.
""" """