Skip to content

Commit

Permalink
fix/featured_media (#224)
Browse files Browse the repository at this point in the history
needs to serialize MediaEntry to dict before emitting bus message
  • Loading branch information
JarbasAl authored Jul 17, 2024
1 parent cbad3e0 commit 61f693e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ovos_workshop/skills/common_play.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,8 @@ def __handle_ocp_featured(self, message):
else:
# inject skill id in individual results
for idx, r in enumerate(results):
if isinstance(r, (MediaEntry, Playlist, PluginStream)):
results[idx] = r.as_dict
results[idx]["skill_id"] = self.skill_id
self.bus.emit(Message("ovos.common_play.skill.play",
{"skill_id": self.skill_id,
Expand Down

0 comments on commit 61f693e

Please sign in to comment.