Skip to content
This repository was archived by the owner on Sep 1, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ If you are updating from a previous version, **it is very important that you bro
Here are some of the features supported by this skill:

- Basic navigation (Up/Down, Left/Right, Page Up/Down, Select, Back, Menu, Zoom, Rotate, Move)
- Open library views (Movies, Shows, Music, Artists, Albums, Music Videos)
- Open library views (Movies, Shows, Music, Artists, Albums, Music Videos, Playlists)
- Open recently added playlists (Movies, Episodes, Albums, Music Videos)
- Playback control (Play/Pause, Skip, Previous, Stop, Step/Jump)
- Adjust volume
- Shuffle all music by an artist
Expand Down
97 changes: 96 additions & 1 deletion alexa.py
Original file line number Diff line number Diff line change
Expand Up @@ -1604,6 +1604,101 @@ def alexa_show_music_videos():
return question(response_text)


# Handle the ViewVideoPlaylist intent.
@ask.intent('ViewVideoPlaylist')
def alexa_show_video_playlist(VideoPlaylist):
print 'Navigate: Video Playlist'

kodi = Kodi(config, context)
playlist = kodi.FindVideoPlaylist(VideoPlaylist)
if len(playlist) > 0:
kodi.ShowVideoPlaylist(playlist[0][0])
response_text = render_template('short_confirm').encode("utf-8")
return question(response_text)


# Handle the ViewMoviePlaylistRecent intent.
@ask.intent('ViewMoviePlaylistRecent')
def alexa_show_recent_movies_playlist():
print 'Navigate: Recently Added Movies'

kodi = Kodi(config, context)
kodi.ShowVideoPlaylist('videodb://recentlyaddedmovies/')
response_text = render_template('short_confirm').encode("utf-8")
return question(response_text)


# Handle the ViewEpisodePlaylistRecent intent.
@ask.intent('ViewEpisodePlaylistRecent')
def alexa_show_recent_episodes_playlist():
print 'Navigate: Recently Added Episodes'

kodi = Kodi(config, context)
kodi.ShowVideoPlaylist('videodb://recentlyaddedepisodes/')
response_text = render_template('short_confirm').encode("utf-8")
return question(response_text)


# Handle the ViewMusicVideoPlaylistRecent intent.
@ask.intent('ViewMusicVideoPlaylistRecent')
def alexa_show_recent_musicvideos_playlist():
print 'Navigate: Recently Added Music Videos'

kodi = Kodi(config, context)
kodi.ShowVideoPlaylist('videodb://recentlyaddedmusicvideos/')
response_text = render_template('short_confirm').encode("utf-8")
return question(response_text)


# Handle the ViewAudioPlaylist intent.
@ask.intent('ViewAudioPlaylist')
def alexa_show_audio_playlist(AudioPlaylist):
print 'Navigate: Audio Playlist'

kodi = Kodi(config, context)
playlist = kodi.FindAudioPlaylist(AudioPlaylist)
if len(playlist) > 0:
kodi.ShowMusicPlaylist(playlist[0][0])
response_text = render_template('short_confirm').encode("utf-8")
return question(response_text)


# Handle the ViewAudioPlaylistRecent intent.
@ask.intent('ViewAudioPlaylistRecent')
def alexa_show_recent_audio_playlist():
print 'Navigate: Recently Added Albums'

kodi = Kodi(config, context)
kodi.ShowMusicPlaylist('musicdb://recentlyaddedalbums/')
response_text = render_template('short_confirm').encode("utf-8")
return question(response_text)


# Handle the ViewPlaylist intent.
@ask.intent('ViewPlaylist')
def alexa_show_playlist(VideoPlaylist, AudioPlaylist):
print 'Navigate: Playlist'

heard_search = ''
if VideoPlaylist:
heard_search = VideoPlaylist
elif AudioPlaylist:
heard_search = AudioPlaylist

kodi = Kodi(config, context)
if len(heard_search) > 0:
playlist = kodi.FindVideoPlaylist(heard_search)
if len(playlist) > 0:
kodi.ShowVideoPlaylist(playlist[0][0])
else:
playlist = kodi.FindAudioPlaylist(heard_search)
if len(playlist) > 0:
kodi.ShowMusicPlaylist(playlist[0][0])

response_text = render_template('short_confirm').encode("utf-8")
return question(response_text)


# Handle the Shutdown intent.
@ask.intent('Shutdown')
def alexa_shutdown():
Expand Down Expand Up @@ -2077,7 +2172,7 @@ def alexa_shuffle_playlist(VideoPlaylist, AudioPlaylist):
print card_title

kodi = Kodi(config, context)
if (len(heard_search) > 0):
if len(heard_search) > 0:
playlist = kodi.FindVideoPlaylist(heard_search)
if len(playlist) > 0:
videos = kodi.GetPlaylistItems(playlist[0][0])['result']['files']
Expand Down
43 changes: 43 additions & 0 deletions speech_assets/IntentSchema.json
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,49 @@
{
"intent": "ViewMusicVideos"
},
{
"intent": "ViewVideoPlaylist",
"slots": [
{
"name": "VideoPlaylist",
"type": "VIDEOPLAYLISTS"
}
]
},
{
"intent": "ViewMoviePlaylistRecent"
},
{
"intent": "ViewEpisodePlaylistRecent"
},
{
"intent": "ViewMusicVideoPlaylistRecent"
},
{
"intent": "ViewAudioPlaylist",
"slots": [
{
"name": "AudioPlaylist",
"type": "MUSICPLAYLISTS"
}
]
},
{
"intent": "ViewAudioPlaylistRecent"
},
{
"intent": "ViewPlaylist",
"slots": [
{
"name": "AudioPlaylist",
"type": "MUSICPLAYLISTS"
},
{
"name": "VideoPlaylist",
"type": "VIDEOPLAYLISTS"
}
]
},
{
"intent": "Fullscreen"
},
Expand Down
74 changes: 74 additions & 0 deletions speech_assets/SampleUtterances.german.txt
Original file line number Diff line number Diff line change
Expand Up @@ -972,14 +972,88 @@ ViewArtists gehe zu Musiker
ViewArtists öffne Interpreten
ViewArtists öffne Künstler
ViewArtists öffne Musiker
ViewAudioPlaylist gehe zu Lieder playlist {AudioPlaylist}
ViewAudioPlaylist gehe zu Musik playlist {AudioPlaylist}
ViewAudioPlaylist gehe zu Song playlist {AudioPlaylist}
ViewAudioPlaylist gehe zu {AudioPlaylist} Lieder playlist
ViewAudioPlaylist gehe zu {AudioPlaylist} Musik playlist
ViewAudioPlaylist gehe zu {AudioPlaylist} Song playlist
ViewAudioPlaylist öffne Lieder playlist {AudioPlaylist}
ViewAudioPlaylist öffne Musik playlist {AudioPlaylist}
ViewAudioPlaylist öffne Song playlist {AudioPlaylist}
ViewAudioPlaylist öffne {AudioPlaylist} Lieder playlist
ViewAudioPlaylist öffne {AudioPlaylist} Musik playlist
ViewAudioPlaylist öffne {AudioPlaylist} Song playlist
ViewAudioPlaylistRecent gehe zu kürzlich hinzugefügte Lieder
ViewAudioPlaylistRecent gehe zu kürzlich hinzugefügte Musik
ViewAudioPlaylistRecent gehe zu kürzlich hinzugefügte Songs
ViewAudioPlaylistRecent gehe zu neue Lieder
ViewAudioPlaylistRecent gehe zu neue Musik
ViewAudioPlaylistRecent gehe zu neue Songs
ViewAudioPlaylistRecent gehe zu zuletzt hinzugefügte Lieder
ViewAudioPlaylistRecent gehe zu zuletzt hinzugefügte Musik
ViewAudioPlaylistRecent gehe zu zuletzt hinzugefügte Songs
ViewAudioPlaylistRecent öffne kürzlich hinzugefügte Lieder
ViewAudioPlaylistRecent öffne kürzlich hinzugefügte Musik
ViewAudioPlaylistRecent öffne kürzlich hinzugefügte Songs
ViewAudioPlaylistRecent öffne neue Lieder
ViewAudioPlaylistRecent öffne neue Musik
ViewAudioPlaylistRecent öffne neue Songs
ViewAudioPlaylistRecent öffne zuletzt hinzugefügte Lieder
ViewAudioPlaylistRecent öffne zuletzt hinzugefügte Musik
ViewAudioPlaylistRecent öffne zuletzt hinzugefügte Songs
ViewEpisodePlaylistRecent gehe zu kürzlich hinzugefügte Musikvideos
ViewEpisodePlaylistRecent gehe zu kürzlich hinzugefügte Series
ViewEpisodePlaylistRecent gehe zu neue Musikvideos
ViewEpisodePlaylistRecent gehe zu neue Series
ViewEpisodePlaylistRecent gehe zu zuletzt hinzugefügte Musikvideos
ViewEpisodePlaylistRecent gehe zu zuletzt hinzugefügte Series
ViewEpisodePlaylistRecent öffne kürzlich hinzugefügte Musikvideos
ViewEpisodePlaylistRecent öffne kürzlich hinzugefügte Series
ViewEpisodePlaylistRecent öffne neue Musikvideos
ViewEpisodePlaylistRecent öffne neue Series
ViewEpisodePlaylistRecent öffne zuletzt hinzugefügte Musikvideos
ViewEpisodePlaylistRecent öffne zuletzt hinzugefügte Series
ViewMoviePlaylistRecent gehe zu kürzlich hinzugefügte Films
ViewMoviePlaylistRecent gehe zu kürzlich hinzugefügte Videos
ViewMoviePlaylistRecent gehe zu neue Films
ViewMoviePlaylistRecent gehe zu neue Videos
ViewMoviePlaylistRecent gehe zu zuletzt hinzugefügte Films
ViewMoviePlaylistRecent gehe zu zuletzt hinzugefügte Videos
ViewMoviePlaylistRecent öffne kürzlich hinzugefügte Films
ViewMoviePlaylistRecent öffne kürzlich hinzugefügte Videos
ViewMoviePlaylistRecent öffne neue Films
ViewMoviePlaylistRecent öffne neue Videos
ViewMoviePlaylistRecent öffne zuletzt hinzugefügte Films
ViewMoviePlaylistRecent öffne zuletzt hinzugefügte Videos
ViewMovies gehe zu Filme
ViewMovies öffne Filme
ViewMusic gehe zu Musik
ViewMusic öffne Musik
ViewMusicVideos gehe zu Musikvideos
ViewMusicVideos öffne Musikvideos
ViewPlaylist gehe zu playlist {AudioPlaylist}
ViewPlaylist gehe zu playlist {VideoPlaylist}
ViewPlaylist gehe zu {AudioPlaylist} playlist
ViewPlaylist gehe zu {VideoPlaylist} playlist
ViewPlaylist öffne playlist {AudioPlaylist}
ViewPlaylist öffne playlist {VideoPlaylist}
ViewPlaylist öffne {AudioPlaylist} playlist
ViewPlaylist öffne {VideoPlaylist} playlist
ViewShows gehe zu Serien
ViewShows öffne Serien
ViewVideoPlaylist gehe zu Film playlist {VideoPlaylist}
ViewVideoPlaylist gehe zu Serie playlist {VideoPlaylist}
ViewVideoPlaylist gehe zu Video playlist {VideoPlaylist}
ViewVideoPlaylist gehe zu {VideoPlaylist} Film playlist
ViewVideoPlaylist gehe zu {VideoPlaylist} Serie playlist
ViewVideoPlaylist gehe zu {VideoPlaylist} Video playlist
ViewVideoPlaylist öffne Film playlist {VideoPlaylist}
ViewVideoPlaylist öffne Serie playlist {VideoPlaylist}
ViewVideoPlaylist öffne Video playlist {VideoPlaylist}
ViewVideoPlaylist öffne {VideoPlaylist} Film playlist
ViewVideoPlaylist öffne {VideoPlaylist} Serie playlist
ViewVideoPlaylist öffne {VideoPlaylist} Video playlist
VolumeDown leiser
VolumeSet Lautstärke auf {Volume}
VolumeSet Lautstärke {Volume}
Expand Down
Loading