Skip to content

Commit

Permalink
no duplicate in plex playlists creation (issue #74)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonc56 committed Oct 3, 2020
1 parent 384422e commit d01f981
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trakt_list_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def updatePlexList(self, plex):
logging.error("Playlist %s not found, so it could not be deleted. Actual playlists: %s" % (self.name, plex.playlists()))
pass
if len(self.plex_items) > 0:
_, plex_items_sorted = zip(*sorted(self.plex_items))
_, plex_items_sorted = zip(*sorted(dict(reversed(self.plex_items)).items()))
plex.createPlaylist(self.name, items=plex_items_sorted)


Expand Down

0 comments on commit d01f981

Please sign in to comment.