Use plex_items_sorted property
MODIFY
plextraktsync/sync.py
plextraktsync/sync.py
@@ -167,8 +167,7 @@ def update_playlists(self, listutil: TraktListUtil, dry_run=False):
for tl in listutil.lists:
logger.info(f"Updating Plex List: {tl.name} ({len(tl.plex_items)} items)")
- _, plex_items_sorted = zip(*sorted(dict(reversed(tl.plex_items)).items()))
- self.plex.update_playlist(tl.name, plex_items_sorted)
+ self.plex.update_playlist(tl.name, tl.plex_items_sorted)
def sync_collection(self, m: Media, dry_run=False):
if not self.config.plex_to_trakt["collection"]:

Use plex_items_sorted property