Skip to content

Commit

Permalink
Keep plex_items_sorted as property
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Jun 11, 2024
1 parent 788b26f commit b0664a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions plextraktsync/sync/TraktListsPlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ async def fini(self, dry_run: bool):

with measure_time("Updated Trakt Lists"):
for tl in self.trakt_lists:
items = tl.plex_items_sorted()
updated = tl.plex_list.update(items)
updated = tl.plex_list.update(tl.plex_items_sorted)
if not updated:
continue
self.logger.info(
Expand Down
1 change: 1 addition & 0 deletions plextraktsync/trakt/TraktUserList.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ def add(self, m: Media):
def title_link(self):
return self.plex_list.title_link

@property
def plex_items_sorted(self):
"""
Returns items sorted by trakt rank
Expand Down

0 comments on commit b0664a3

Please sign in to comment.