platypush/plugins/media/mpv/__init__.py
def toggle_property(self, property):
        """
        Toggle or sets the value of an mpv property (e.g. fullscreen,
        sub_visibility etc.). See ``man mpv`` for a full list of properties

        :param property: Property to toggle
        """
        if not self._player:
            return None, 'No mpv instance is running'

        if not hasattr(self._player, property):
            self.logger.warning('No such mpv property: {}'.format(property))

        value = not getattr(self._player, property)
        setattr(self._player, property, value)
        return {property: value}

        Toggle or sets the value of an mpv property (e.g. fullscreen,
        sub_visibility etc.). See ``man mpv`` for a full list of properties

        :param property: Property to toggle
        
Toggle or sets the value of an mpv property . See ``man mpv`` for a full list of properties
Toggle or sets the value of an mpv property . See ` ` man mpv ` ` for a full list of properties
def toggle_property(self, property):
        if not self._player:
            return None, 'No mpv instance is running'
        if not hasattr(self._player, property):
            self.logger.warning('No such mpv property: {}'.format(property))
        value = not getattr(self._player, property)
        setattr(self._player, property, value)
        return {property: value}
def toggle_property ( self , property ) : if not self . _player : return None , 'No mpv instance is running' if not hasattr ( self . _player , property ) : self . logger . warning ( 'No such mpv property: {}' . format ( property ) ) value = not getattr ( self . _player , property ) setattr ( self . _player , property , value ) return { property : value }
Toggle or sets the value of an mpv property (e.g.
Toggle or sets the value of an mpv property ( e . g .
"""
        Toggle or sets the value of an mpv property (e.g. fullscreen,
        sub_visibility etc.). See ``man mpv`` for a full list of properties

        :param property: Property to toggle
        """
self
property
Property to toggle
Property to toggle