def _new_episodes(cache, feed):
    """Returns all episodes in the feed that have not been previously added
    to the cache.
    """
    episodes = []

    for episode in feed.episodes:
        if not cache.has(episode):
            episodes.append(episode)

    return episodes