pause the music before speaking dialog for spotify skill
This commit is contained in:
parent
a6e749ce5a
commit
8492038b38
@ -15,6 +15,9 @@ class SpotifySkill(Skill, metaclass=SkillRegistering):
|
|||||||
data['artist'] if 'artist' in data else None)
|
data['artist'] if 'artist' in data else None)
|
||||||
|
|
||||||
if song_lists_matching is not None and len(song_lists_matching) >= 1:
|
if song_lists_matching is not None and len(song_lists_matching) >= 1:
|
||||||
|
# pause the music then speak dialog
|
||||||
|
spotify.get_spotify().pause_playback()
|
||||||
|
|
||||||
if 'artist' in data and 'song' not in data:
|
if 'artist' in data and 'song' not in data:
|
||||||
self.speak_dialog("play_from_artist", {'artist': song_lists_matching[0]['artists'][0]['name']})
|
self.speak_dialog("play_from_artist", {'artist': song_lists_matching[0]['artists'][0]['name']})
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user