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

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

Fix getting unwatched episodes from Plex
Fix getting unwatched episodes from Plex

  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))
+         watched_episodes = []
+         shows = self.plex.library.section(section_name).searchShows()
+         for show in shows:
+             watched_episodes.extend(show.watched())
          return watched_episodes
  
Fix getting unwatched episodes from Plex
## Code 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

## Instruction:
Fix getting unwatched episodes from Plex
## Code 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
