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 <git@luigi311.com>
This commit is contained in:
12
src/plex.py
12
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:
|
def extract_identifiers_from_item(item: Movie | Show | Episode) -> MediaIdentifiers:
|
||||||
guids = extract_guids_from_item(item)
|
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(
|
return MediaIdentifiers(
|
||||||
title=item.title,
|
title=item.title,
|
||||||
locations=(
|
locations=(
|
||||||
|
|||||||
Reference in New Issue
Block a user