@protocol.commands.add('searchaddpl')
def searchaddpl(context, *args):
    parameters = list(args)
    if not parameters:
        raise exceptions.MpdArgError('incorrect arguments')
    playlist_name = parameters.pop(0)
    try:
        query = _query_from_mpd_search_parameters(parameters, _SEARCH_MAPPING)
    except ValueError:
        return
    results = context.core.library.search(query).get()

    uri = context.lookup_playlist_uri_from_name(playlist_name)
    playlist = uri is not None and context.core.playlists.lookup(uri).get()
    if not playlist:
        playlist = context.core.playlists.create(playlist_name).get()
    tracks = list(playlist.tracks) + _get_tracks(results)
    playlist = playlist.replace(tracks=tracks)
    context.core.playlists.save(playlist)
Initialize the code generator from a configuration
dataset/ETHPy150Open mopidy/mopidy/mopidy/mpd/protocol/music_db.py/searchaddpl--crossover with--dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/pycparser-2.14/pycparser/_ast_gen.py/ASTCodeGenerator.__init__