:orphan: :py:mod:`calliope.musicbrainz.annotate_helpers` =============================================== .. py:module:: calliope.musicbrainz.annotate_helpers Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: calliope.musicbrainz.annotate_helpers.query_data calliope.musicbrainz.annotate_helpers.adapt_artist_credit calliope.musicbrainz.annotate_helpers.search .. py:function:: query_data(cache, item, include) Query all MusicBrainz data specified by keys in ``include``. .. py:function:: adapt_artist_credit(artist_credit) Process 'artist-credit' field into a Calliope artist list. .. py:function:: search(context, item, select_fun = select_best) Search musicbrainz for the best match of item. :param context: The musicbrainz context :param item: The item to search the match for :param select_fun: A selector function which chooses the best match from the retrieved candidates :returns: The match or None in case no good match was found.