From a9659c95df22259e4507df8292ed53ffc2d617cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 15 Jan 2024 17:29:11 +0200 Subject: [PATCH] Add hash definition to PlexLibraryItem --- plextraktsync/plex/PlexLibraryItem.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plextraktsync/plex/PlexLibraryItem.py b/plextraktsync/plex/PlexLibraryItem.py index 68e20275c29..80760444a25 100644 --- a/plextraktsync/plex/PlexLibraryItem.py +++ b/plextraktsync/plex/PlexLibraryItem.py @@ -64,6 +64,9 @@ def __eq__(self, other: PlexLibraryItem): return True return False + def __hash__(self): + return hash((guid.provider, guid.id) for guid in self.guids) + @cached_property def guids(self): # return early if legacy agent