Get original ratingKey from guid PlexAPI way
MODIFY
plextraktsync/plex/PlexLibraryItem.py
plextraktsync/plex/PlexLibraryItem.py
@@ -286,7 +286,7 @@ def __repr__(self):
# https://github.com/pkkid/python-plexapi/issues/1072
if not isinstance(self.item.ratingKey, int):
parts = plex.split(":")
- parts[1] = self.item._data.attrib.get("ratingKey")
+ parts[1] = self.item.guid.rsplit('/', 1)[-1]
plex = ":".join(parts)
return f"<{guid.provider}:{guid.id}:{plex}>"

Get original ratingKey from guid PlexAPI way