<commit_before>class Plex(object):
    def __init__(self, plex):
        self.plex = plex

    def get_watched_episodes(self, section_name):
        watched_episodes = set(self.plex.library.section(section_name).searchEpisodes(unwatched=False))
        return watched_episodes<commit_msg>Fix getting unwatched episodes from Plex<commit_after>class Plex(object):
    def __init__(self, plex):
        self.plex = plex

    def get_watched_episodes(self, section_name):
        watched_episodes = []
        shows = self.plex.library.section(section_name).searchShows()
        for show in shows:
            watched_episodes.extend(show.watched())
        return watched_episodes
{'fraction_non_alphanumeric': 0.09292035398230089, 'fraction_numerical': 0.0, 'mean_word_length': 3.526666666666667, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3202391', 'n_tokens_mistral': 212, 'n_tokens_neox': 209, 'n_words': 38}