'Fetch album art for each of the albums. This implements the manual
fetchart CLI command.'

def batch_fetch_art(self, lib, albums, force):

    for album in albums:
        if (album.artpath and (not force) and os.path.isfile(album.artpath)):
            message = ui.colorize('text_highlight_minor', u'has    album    art')
        else:
            local_paths = (None if force else [album.path])
            candidate = self.art_for_album(album, local_paths)
            if candidate:
                self._set_art(album, candidate)
                message = ui.colorize('text_success', u'found    album    art')
            else:
                message = ui.colorize('text_error', u'no    art    found')
        self._log.info(u'{0}:    {1}', album, message)
