platypush/plugins/music/mpd/__init__.py
def add_to_playlist(self, playlist, resources):
        """
        Add one or multiple resources to a playlist.

        :param playlist: Playlist name
        :type playlist: str

        :param resources: URI or path of the resource(s) to be added
        :type resources: str or list[str]
        """

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

        for res in resources:
            self._exec('playlistadd', playlist, res)

        Add one or multiple resources to a playlist.

        :param playlist: Playlist name
        :type playlist: str

        :param resources: URI or path of the resource(s) to be added
        :type resources: str or list[str]
        
Add one or multiple resources to a playlist.
Add one or multiple resources to a playlist .
def add_to_playlist(self, playlist, resources):
        if isinstance(resources, str):
            resources = [resources]
        for res in resources:
            self._exec('playlistadd', playlist, res)
def add_to_playlist ( self , playlist , resources ) : if isinstance ( resources , str ) : resources = [ resources ] for res in resources : self . _exec ( 'playlistadd' , playlist , res )
Add one or multiple resources to a playlist.
Add one or multiple resources to a playlist .
"""
        Add one or multiple resources to a playlist.

        :param playlist: Playlist name
        :type playlist: str

        :param resources: URI or path of the resource(s) to be added
        :type resources: str or list[str]
        """
self
playlist
None
resources
URI or path of the resource(s) to be added
URI or path of the resource ( s ) to be added