Skip to content

Commit

Permalink
Merge pull request #1878 from glensc/skip-private-list
Browse files Browse the repository at this point in the history
Skip private liked list
  • Loading branch information
glensc authored Mar 26, 2024
2 parents 414612d + 1ced19c commit f2e4f29
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 f2e4f29

Please sign in to comment.