'Find art for the album being imported.'

def fetch_art(self, session, task):

    if task.is_album:
        if (task.album.artpath and os.path.isfile(task.album.artpath)):
            return
        if (task.choice_flag == importer.action.ASIS):
            local = True
        elif (task.choice_flag == importer.action.APPLY):
            local = False
        else:
            return
        candidate = self.art_for_album(task.album, task.paths, local)
        if candidate:
            self.art_candidates[task] = candidate
