diff --git a/plextraktsync/plex/PlexPlaylist.py b/plextraktsync/plex/PlexPlaylist.py index ad1c476719..5706c06e52 100644 --- a/plextraktsync/plex/PlexPlaylist.py +++ b/plextraktsync/plex/PlexPlaylist.py @@ -69,8 +69,8 @@ def update(self, items: list[PlexMedia], description=None) -> bool: del self.__dict__["playlist"] del self.__dict__["items"] for item in items: - print(type(item), PlexLibraryItem(item, plex=self.plex).library.section) - playlist = self.section.createCollection(self.name, items=items) + section = PlexLibraryItem(item, plex=self.plex).library.section + playlist = section.createCollection(self.name, items=items) self.logger.info(f"Created plex playlist {self.title_link} with {len(items)} items", extra={"markup": True}) # Skip if playlist could not be made/retrieved