platypush/plugins/music/spotify/__init__.py
def pause_if_playing(self):
        """
        Pause playback only if it's playing
        """
        # noinspection PyUnresolvedReferences
        status = self.status().output
        if status.get('state') == PlayerState.PLAY.value:
            self.spotify_user_call(
                f'/v1/me/player/pause',
                method='put',
            )

        Pause playback only if it's playing
        
Pause playback only if it's playing
Pause playback only if it ' s playing
def pause_if_playing(self):
        status = self.status().output
        if status.get('state') == PlayerState.PLAY.value:
            self.spotify_user_call(
                f'/v1/me/player/pause',
                method='put',
            )
def pause_if_playing ( self ) : status = self . status ( ) . output if status . get ( 'state' ) == PlayerState . PLAY . value : self . spotify_user_call ( f'/v1/me/player/pause' , method = 'put' , )
Pause playback only if it's playing
Pause playback only if it ' s playing
"""
        Pause playback only if it's playing
        """ # noinspection PyUnresolvedReferences
self