def play_state(self):
        """Play state, e.g. playing or paused."""
        # TODO: extract to a convert module
        state = self._setstate.playbackState
        if state == 1:
            return const.PLAY_STATE_PLAYING
        if state == 2:
            return const.PLAY_STATE_PAUSED

        return const.PLAY_STATE_PAUSED
def play_state ( self ) : state = self . _setstate . playbackState if state == 1 : return const . PLAY_STATE_PLAYING if state == 2 : return const . PLAY_STATE_PAUSED return const . PLAY_STATE_PAUSED
Play state, e.g. playing or paused.