From 4d0f1d303f5fac652ff17c49955c9e98d43ec834 Mon Sep 17 00:00:00 2001 From: Luis Garcia Date: Wed, 19 Feb 2025 12:44:21 -0700 Subject: [PATCH] Plex: Remove logging if locations or guids Remove the logging of if an item has locations or guids as that forces a fetch of that data which defeats the purpose of generate guid/location variables Signed-off-by: Luis Garcia --- src/plex.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/plex.py b/src/plex.py index 410b474..0beb227 100644 --- a/src/plex.py +++ b/src/plex.py @@ -61,18 +61,6 @@ def extract_guids_from_item(item: Movie | Show | Episode) -> dict[str, str]: def extract_identifiers_from_item(item: Movie | Show | Episode) -> MediaIdentifiers: guids = extract_guids_from_item(item) - if not item.locations: - logger( - f"Plex: {item.title} has no locations", - 1, - ) - - if not item.guids: - logger( - f"Plex: {item.title} has no guids", - 1, - ) - return MediaIdentifiers( title=item.title, locations=(