Avoid using deprecated .guid
MODIFY
plex_trakt_sync/plex_api.py
plex_trakt_sync/plex_api.py
@@ -230,7 +230,8 @@ def date_value(self, date):
return date.astimezone(datetime.timezone.utc)
def __repr__(self):
- return "<%s:%s:%s>" % (self.guid.provider, self.guid.id, self.item)
+ guid = self.guids[0]
+ return "<%s:%s:%s>" % (guid.provider, guid.id, self.item)
def to_json(self):
return {

Avoid using deprecated .guid