From 61f693e00d86590456138e64a7b72d1d4e370b59 Mon Sep 17 00:00:00 2001 From: JarbasAI <33701864+JarbasAl@users.noreply.github.com> Date: Wed, 17 Jul 2024 16:21:28 +0100 Subject: [PATCH] fix/featured_media (#224) needs to serialize MediaEntry to dict before emitting bus message --- ovos_workshop/skills/common_play.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ovos_workshop/skills/common_play.py b/ovos_workshop/skills/common_play.py index 8ea9a7d2..c299b41f 100644 --- a/ovos_workshop/skills/common_play.py +++ b/ovos_workshop/skills/common_play.py @@ -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,