Add type accessor for ActivityNotification
MODIFY
plex_trakt_sync/events.py
plex_trakt_sync/events.py
@@ -23,6 +23,10 @@ class AccountUpdateNotification(Event):
class ActivityNotification(Event):
+ @property
+ def type(self):
+ return self["Activity"]["type"]
+
@property
def progress(self):
return self["Activity"]["progress"]

Add type accessor for ActivityNotification