Update __str__ of PlexGuid to identify better
MODIFY
plextraktsync/media.py
plextraktsync/media.py
@@ -180,9 +180,7 @@ def resolve_any(self, pm: PlexLibraryItem, show: Media = None):
def resolve_guid(self, guid: PlexGuid, show: Media = None):
if guid.provider in ["local", "none", "agents.none"]:
- logger.warning(
- f"{guid.pm.item}: Skipping guid {guid} because provider {guid.provider} has no external Id"
- )
+ logger.warning(f"{guid.pm.item}: Skipping {guid} because provider {guid.provider} has no external Id")
return None

MODIFY
plextraktsync/plex_api.py
plextraktsync/plex_api.py
@@ -87,7 +87,7 @@ def guid_is_imdb_legacy(self):
return guid[0:2] == "tt" and guid[2:].isnumeric()
def __str__(self):
- return self.guid
+ return f"<PlexGuid:{self.guid}>"
class PlexRatingCollection(dict):

Update __str__ of PlexGuid to identify better