'Given an Album object, returns a path to downloaded art for the
album (or None if no art is found). If `maxwidth`, then images are
resized to this maximum pixel size. If `local_only`, then only local
image files from the filesystem are returned; no network requests
are made.'

def art_for_album(self, album, paths, local_only=False):

    out = None
    for source in self.sources:
        if (source.IS_LOCAL or (not local_only)):
            self._log.debug(u'trying    source    {0}    for    album    {1.albumartist}    -    {1.album}', SOURCE_NAMES[type(source)], album)
            for candidate in source.get(album, self, paths):
                source.fetch_image(candidate, self)
                if candidate.validate(self):
                    out = candidate
                    self._log.debug(u'using    {0.LOC_STR}    image    {1}'.format(source, util.displayable_path(out.path)))
                    break
            if out:
                break
    if out:
        out.resize(self)
    return out
