Skip to content

Commit

Permalink
fix/self.name usages (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl authored Jan 20, 2024
1 parent 1f5fa54 commit f3a571c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ovos_workshop/skills/common_play.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ def _register_decorated(self):
self.bus.emit(
Message('ovos.common_play.announce',
{"skill_id": self.skill_id,
"skill_name": self.name,
"skill_name": self.skill_aliases[0],
"thumbnail": self.skill_icon,
"media_types": self.supported_media,
"featured_tracks": len(self._featured_handlers) >= 1}))
Expand All @@ -354,7 +354,7 @@ def extend_timeout(self, timeout=0.5):
self.bus.emit(Message("ovos.common_play.query.response",
{"phrase": self._current_query,
"skill_id": self.skill_id,
"skill_name": self.name,
"skill_name": self.skill_aliases[0],
"thumbnail": self.skill_icon,
"timeout": timeout,
"searching": True}))
Expand Down Expand Up @@ -436,7 +436,7 @@ def __handle_ocp_query(self, message):

self.bus.emit(message.reply("ovos.common_play.skill.search_start",
{"skill_id": self.skill_id,
"skill_name": self.name,
"skill_name": self.skill_aliases[0],
"thumbnail": self.skill_icon, }))

# invoke the media search handlesr to let the skill perform its search
Expand All @@ -460,7 +460,7 @@ def __handle_ocp_query(self, message):
results[idx]["skill_id"] = self.skill_id
self.bus.emit(message.response({"phrase": search_phrase,
"skill_id": self.skill_id,
"skill_name": self.name,
"skill_name": self.skill_aliases[0],
"thumbnail": self.skill_icon,
"results": results,
"searching": False}))
Expand All @@ -472,7 +472,7 @@ def __handle_ocp_query(self, message):
r["skill_id"] = self.skill_id
self.bus.emit(message.response({"phrase": search_phrase,
"skill_id": self.skill_id,
"skill_name": self.name,
"skill_name": self.skill_aliases[0],
"thumbnail": self.skill_icon,
"results": [r],
"searching": False}))
Expand All @@ -484,7 +484,7 @@ def __handle_ocp_query(self, message):
# Signal we are done (can't handle it)
self.bus.emit(message.response({"phrase": search_phrase,
"skill_id": self.skill_id,
"skill_name": self.name,
"skill_name": self.skill_aliases[0],
"thumbnail": self.skill_icon,
"searching": False}))
self.bus.emit(message.reply("ovos.common_play.skill.search_end",
Expand All @@ -510,7 +510,7 @@ def __handle_ocp_featured(self, message):
results[idx]["skill_id"] = self.skill_id
self.bus.emit(Message("ovos.common_play.skill.play",
{"skill_id": self.skill_id,
"skill_name": self.name,
"skill_name": self.skill_aliases[0],
"thumbnail": self.skill_icon,
"playlist": results}))

Expand Down

0 comments on commit f3a571c

Please sign in to comment.