m0ngr31 / kanzi

Alexa skill for controlling Kodi
https://lexigr.am
MIT License
427 stars 149 forks source link

Add Recommend* Intents. #186

Closed jingai closed 7 years ago

jingai commented 7 years ago

To recommend media to the user.

Requires script.skin.helper.widgets to be installed on Kodi. It seemed reasonable to require this as the functionality is already there, and most people will have this installed already.

These intents all support maintaining a conversation with Alexa, so you can do something like:

"Alexa, open Kodi" "Recommend a movie" "How about the movie Ghostbusters?" "No" "How about the movie Back to the Future?" "Yes"

This additionally requires changes that are already in Kodi-Voice, but not yet released to PyPi. I did however push up a test package with these changes (10.9.4) to the PyPi test server.

jingai commented 7 years ago

@mcl22 and @ausweider there are new strings to translate for this as well. If you'd like to see these in the next release, please submit translated strings here :)

mcl22 commented 7 years ago

Here are the translations:

no_recommendations: "Es tut mir leid, aber es gibt nichts zu empfehlen." recommend_movie: "Wie wäre es mit dem Film {{ movie_name }}?" recommend_show: "Wie wäre es mit der Serie {{ show_name }}?" recommend_episode: "Wie wäre es mit der Staffel {{ season }} Episode {{ episode }} von {{ show_name }}?" recommend_musicvideo: "Wie wäre es mit dem Musikvideo {{ musicvideo_name }} von {{ artist_name }}?" recommend_artist: "Wie wäre es mit Musik von {{ artist_name }}?" recommend_album: "Wie wäre es mit dem Album {{ album_name }} von {{ artist_name }}?" recommend_song: "Wie wäre es mit ein paar kürzlich hinzugefügten Songs?" okay: "Okay"

Utterances: RecommendMedia was es (/mir) (empfiehlt/vorschlägt) RecommendMovie welchen Film es (/mir) (empfiehlt/vorschlägt) RecommendShow welche Serie es (/mir) (empfiehlt/vorschlägt) RecommendEpisode welche (Folge/Episode) es (/mir) (empfiehlt/vorschlägt) RecommendMusicVideo welches Musikvideo es (/mir) (empfiehlt/vorschlägt) RecommendArtist welchen Interpreten es (/mir) (empfiehlt/vorschlägt) RecommendAlbum welches Album es (/mir) (empfiehlt/vorschlägt) RecommendSong (welches Lied/welchen Song) es (/mir) (empfiehlt/vorschlägt)

jingai commented 7 years ago

Thanks @mcl22 ! Updated and added to PR.