'Look for album art files in the specified directories.'

def get(self, album, plugin, paths):

    if (not paths):
        return
    cover_names = list(map(util.bytestring_path, plugin.cover_names))
    cover_names_str = '|'.join(cover_names)
    cover_pat = ''.join(['(\\b|_)(', cover_names_str, ')(\\b|_)'])
    for path in paths:
        if (not os.path.isdir(syspath(path))):
            continue
        images = []
        for fn in os.listdir(syspath(path)):
            fn = bytestring_path(fn)
            for ext in IMAGE_EXTENSIONS:
                if (fn.lower().endswith(('.' + ext)) and os.path.isfile(syspath(os.path.join(path, fn)))):
                    images.append(fn)
        images = sorted(images, key=(lambda x: self.filename_priority(x, cover_names)))
        remaining = []
        for fn in images:
            if re.search(cover_pat, os.path.splitext(fn)[0], re.I):
                self._log.debug(u'using    well-named    art    file    {0}', util.displayable_path(fn))
                (yield self._candidate(path=os.path.join(path, fn), match=Candidate.MATCH_EXACT))
            else:
                remaining.append(fn)
        if (remaining and (not plugin.cautious)):
            self._log.debug(u'using    fallback    art    file    {0}', util.displayable_path(remaining[0]))
            (yield self._candidate(path=os.path.join(path, remaining[0]), match=Candidate.MATCH_FALLBACK))
