From 1ced19c0e279b95f813f2c6fd5d1acffe725d638 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Wed, 27 Mar 2024 00:34:42 +0200 Subject: [PATCH] Skip private liked list - https://github.com/Taxel/PlexTraktSync/issues/1864#issuecomment-2018171311 Do so until support is added --- plextraktsync/trakt/TraktApi.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plextraktsync/trakt/TraktApi.py b/plextraktsync/trakt/TraktApi.py index 9d353c3fb8..845108d44f 100644 --- a/plextraktsync/trakt/TraktApi.py +++ b/plextraktsync/trakt/TraktApi.py @@ -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"],