Closed tonyespinoza1 closed 2 years ago
"Next" and "Previous" actually need to behave different than "next song" because they need to operate on the current skill, rather than unconditionally the music skill. @rhulkb27 is working on those commands.
behavior is quite different now with the same starting point on this issue:
====
# main/4ce661a0-cee9-479f-81f7-1ae4ebf495a2
#! timestamp: 2021-07-31T01:40:34.809Z
U: play chopin
UT: $dialogue @org.thingpedia.dialogue.transaction.execute;
UT: @org.thingpedia.media-source.playable() filter id =~ "chopin" => @org.thingpedia.media-player.play(playable=id);
C: $dialogue @org.thingpedia.dialogue.transaction.execute;
C: (@org.thingpedia.media-source(id="com.spotify-126743886"^^tt:device_id("Spotify Account of Tony Espinoza")).playable() filter id =~ "chopin")[1] => @org.thingpedia.media-player(id="com.spotify-126743886"^^tt:device_id("Spotify Account of Tony Espinoza")).play(playable=id)
C: #[results=[
C: { device="55e94e7f-839e-4e71-913f-856ab9dc1ce2"^^org.thingpedia.media-player:device("MR alexa"), playable="spotify:track:2MSgFefjK0T7Iwjvr3OKqV"^^org.thingpedia.media-source:playable("Chopin: Nocturne No. 20 in C-Sharp Minor, Op. Posth."), __device="com.spotify-126743886"^^tt:device_id("Spotify Account of Tony Espinoza") }
C: ]];
#! timestamp: 2021-07-31T01:40:39.874Z
A: Did you mean get music that has name chopin and then play the id on Spotify?
A: I played Chopin: Nocturne No. 20 in C-Sharp Minor, Op. Posth. On Spotify.
AT: $dialogue @org.thingpedia.dialogue.transaction.sys_action_success;
#! timestamp: 2021-07-31T01:40:48.227Z
U: next
UT: $dialogue @org.thingpedia.dialogue.transaction.execute;
UT: @org.thingpedia.builtin.thingengine.builtin.faq_reply(question=enum general_help);
These work now.
simple: "next" should play the next song following the current behavior of "next song" and "another song" and "next please"
I'm editing this one to include "previous" as well.
play chopin
I played music by Frédéric Chopin on Spotify. next
I played music by Frédéric Chopin on Spotify. next
I played music by Frédéric Chopin on Spotify.