platypush/plugins/music/mpd/__init__.py
def remove_from_playlist(self, playlist, resources):
        """
        Remove one or multiple tracks from a playlist.

        :param playlist: Playlist name
        :type playlist: str

        :param resources: Position or list of positions to remove
        :type resources: int or list[int]
        """

        if isinstance(resources, str):
            resources = int(resources)
        if isinstance(resources, int):
            resources = [resources]

        for p in sorted(resources, reverse=True):
            self._exec('playlistdelete', playlist, p)

        Remove one or multiple tracks from a playlist.

        :param playlist: Playlist name
        :type playlist: str

        :param resources: Position or list of positions to remove
        :type resources: int or list[int]
        
Remove one or multiple tracks from a playlist.
Remove one or multiple tracks from a playlist .
def remove_from_playlist(self, playlist, resources):
        if isinstance(resources, str):
            resources = int(resources)
        if isinstance(resources, int):
            resources = [resources]
        for p in sorted(resources, reverse=True):
            self._exec('playlistdelete', playlist, p)
def remove_from_playlist ( self , playlist , resources ) : if isinstance ( resources , str ) : resources = int ( resources ) if isinstance ( resources , int ) : resources = [ resources ] for p in sorted ( resources , reverse = True ) : self . _exec ( 'playlistdelete' , playlist , p )
Remove one or multiple tracks from a playlist.
Remove one or multiple tracks from a playlist .
"""
        Remove one or multiple tracks from a playlist.

        :param playlist: Playlist name
        :type playlist: str

        :param resources: Position or list of positions to remove
        :type resources: int or list[int]
        """
self
playlist
None
resources
Position or list of positions to remove
Position or list of positions to remove