'Retrieve and apply info from the autotagger for items matched by
query.'

def singletons(self, lib, query, move, pretend, write):

    for item in lib.items((query + [u'singleton:true'])):
        item_formatted = format(item)
        if (not item.mb_trackid):
            self._log.info(u'Skipping    singleton    with    no    mb_trackid:    {0}', item_formatted)
            continue
        track_info = hooks.track_for_mbid(item.mb_trackid)
        if (not track_info):
            self._log.info(u'Recording    ID    not    found:    {0}    for    track    {0}', item.mb_trackid, item_formatted)
            continue
        with lib.transaction():
            autotag.apply_item_metadata(item, track_info)
            apply_item_changes(lib, item, move, pretend, write)
