Handle watch activity for episodes
@@ -63,6 +63,15 @@ def find_by_key(self, key: str, reload=False):
return None
m = self.mf.resolve_any(pm)
+ if not m:
+ return None
+
+ # setup show property for trakt watched status
+ if m.is_episode:
+ ps = self.plex.fetch_item(m.plex.item.grandparentRatingKey)
+ ms = self.mf.resolve_any(ps)
+ m.show = ms
+
return m
def on_error(self, error: Error):
