#NEWLINE# @ protocol . commands . add ( 'findadd' ) #NEWLINE# def findadd( context , * args ) : #NEWLINE# #INDENT# '\n    *musicpd.org, music database section:*\n\n        ``findadd {TYPE} {WHAT}``\n\n        Finds songs in the db that are exactly ``WHAT`` and adds them to\n        current playlist. Parameters have the same meaning as for ``find``.\n    ' #NEWLINE# try : #NEWLINE# #INDENT# query = _query_from_mpd_search_parameters ( args , _SEARCH_MAPPING ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# results = context . core . library . search ( query = query , exact = True ) . get ( ) #NEWLINE# with deprecation . ignore ( 'core.tracklist.add:tracks_arg' ) : #NEWLINE# #INDENT# context . core . tracklist . add ( tracks = _get_tracks ( results ) ) . get ( )