Skip to content

Commit

Permalink
Skip private liked list
Browse files Browse the repository at this point in the history
- #1864 (comment)

Do so until support is added
  • Loading branch information
glensc committed Mar 26, 2024
1 parent 414612d commit 1ced19c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plextraktsync/trakt/TraktApi.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ def me(self):
@flatten_list
def liked_lists(self) -> list[TraktLikedList]:
for item in self.me.get_liked_lists("lists", limit=1000):
# Skip private lists
# https://github.com/Taxel/PlexTraktSync/issues/1864#issuecomment-2018171311
if item["list"]["privacy"] == "private":
self.logger.warning(f"Skipping private list: {item['list']['name']} - {item['list']['share_link']}")
continue
tll: TraktLikedList = {
"listname": item["list"]["name"],
"listid": item["list"]["ids"]["trakt"],
Expand Down

0 comments on commit 1ced19c

Please sign in to comment.