platypush/plugins/music/spotify/__init__.py
def status(self, **kwargs) -> dict:
        """
        Get the status of the currently active player.

        :return: .. schema:: spotify.SpotifyStatusSchema
        """
        status = self.spotify_user_call('/v1/me/player')
        if not status:
            return {
                'state': PlayerState.STOP.value,
            }

        return SpotifyStatusSchema().dump(status)

        Get the status of the currently active player.

        :return: .. schema:: spotify.SpotifyStatusSchema
        
Get the status of the currently active player.
Get the status of the currently active player .
def status(self, **kwargs) -> dict:
        status = self.spotify_user_call('/v1/me/player')
        if not status:
            return {
                'state': PlayerState.STOP.value,
            }
        return SpotifyStatusSchema().dump(status)
def status ( self , ** kwargs ) -> dict : status = self . spotify_user_call ( '/v1/me/player' ) if not status : return { 'state' : PlayerState . STOP . value , } return SpotifyStatusSchema ( ) . dump ( status )
Get the status of the currently active player.
Get the status of the currently active player .
"""
        Get the status of the currently active player.

        :return: .. schema:: spotify.SpotifyStatusSchema
        """
None
self