Skip to content
This repository has been archived by the owner on Oct 24, 2021. It is now read-only.

Commit

Permalink
bg
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Mar 11, 2021
1 parent ccd05b4 commit 3de4109
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions ovos_utils/playback/cps.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,9 +404,13 @@ def update_status(self, status):

# playback control
def play(self):

data = self.playback_data.get("playing") or {}
uri = data.get("stream") or data.get("uri") or data.get("url")
skill_id = self.active_skill = data["skill_id"]

self.stop()

if data["playback"] == CPSPlayback.AUDIO:
data["status"] = CPSTrackStatus.PLAYING_AUDIOSERVICE
real_url = self.get_stream(uri)
Expand Down Expand Up @@ -483,8 +487,6 @@ def stop(self):
self.audio_service.stop()
elif self.active_backend is not None:
self.bus.emit(Message(f'better_cps.{self.active_skill}.stop'))

self.gui.release()
self.update_status({"status": CPSTrackStatus.END_OF_MEDIA})
stopped = self.active_backend is not None
self.active_backend = None
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='ovos_utils',
version='0.0.8a1',
version='0.0.8a2',
packages=['ovos_utils',
'ovos_utils.waiting_for_mycroft',
'ovos_utils.misc',
Expand Down

0 comments on commit 3de4109

Please sign in to comment.