platypush/plugins/music/spotify/__init__.py
def current_track(self, **kwargs) -> dict:
        """
        Get the track currently playing.

        :return: .. schema:: spotify.SpotifyTrackSchema
        """
        status = self.spotify_user_call('/v1/me/player')
        empty_response = Response(output={})
        if not status:
            # noinspection PyTypeChecker
            return empty_response

        track = status.get('item', {})
        if not track:
            # noinspection PyTypeChecker
            return empty_response

        return SpotifyTrackSchema().dump(track)

        Get the track currently playing.

        :return: .. schema:: spotify.SpotifyTrackSchema
        
Get the track currently playing.
Get the track currently playing .
def current_track(self, **kwargs) -> dict:
        status = self.spotify_user_call('/v1/me/player')
        empty_response = Response(output={})
        if not status:
            return empty_response
        track = status.get('item', {})
        if not track:
            return empty_response
        return SpotifyTrackSchema().dump(track)
def current_track ( self , ** kwargs ) -> dict : status = self . spotify_user_call ( '/v1/me/player' ) empty_response = Response ( output = { } ) if not status : return empty_response track = status . get ( 'item' , { } ) if not track : return empty_response return SpotifyTrackSchema ( ) . dump ( track )
Get the track currently playing.
Get the track currently playing .
"""
        Get the track currently playing.

        :return: .. schema:: spotify.SpotifyTrackSchema
        """ # noinspection PyTypeChecker # noinspection PyTypeChecker
None
self