diff --git a/spotipy/client.py b/spotipy/client.py index 7c726c1..7a6036d 100644 --- a/spotipy/client.py +++ b/spotipy/client.py @@ -1620,21 +1620,24 @@ class Spotify(object): """ return self._get("me/player/devices") - def current_playback(self, market=None): + def current_playback(self, market=None, additional_types=None): """ Get information about user's current playback. Parameters: - market - an ISO 3166-1 alpha-2 country code. + - additional_types - `episode` to get podcast track information """ - return self._get("me/player", market=market) + return self._get("me/player", market=market, additional_types=additional_types) - def currently_playing(self, market=None): + def currently_playing(self, market=None, additional_types=None): """ Get user's currently playing track. Parameters: - market - an ISO 3166-1 alpha-2 country code. + - additional_types - `episode` to get podcast track information """ - return self._get("me/player/currently-playing", market=market) + return self._get("me/player/currently-playing", market=market, + additional_types=additional_types) def transfer_playback(self, device_id, force_play=True): """ Transfer playback to another device.