diff --git a/dashboard-ui/voice/grammar/en-US.json b/dashboard-ui/voice/grammar/en-US.json index 0a24a4bc78..7c3e4f07e9 100644 --- a/dashboard-ui/voice/grammar/en-US.json +++ b/dashboard-ui/voice/grammar/en-US.json @@ -141,6 +141,19 @@ "Play my music", "Listen to my music " ] + }, + { + "actionid": "play", + "sourceid": "latestmovies", + "command": "(?play)\\s?(?my|me)?\\s?(?latest movies|latest films)\\s?(?on device|to device)\\s?(?.*)", + "altcommand": "(?play)\\s?(?my|me)?\\s?(?latest movies|latest films)", + "filters": [ "unplayed" ], + "sortBy": "datecreated", + "sortOrder": "Descending", + "commandtemplates": [ + "Play my latest movies", + "Play latest films" + ] } ] }, @@ -181,13 +194,14 @@ { "actionid": "shuffle", "sourceid": "music", - "command": "(?shuffle)\\s?(?my|me)?\\s?(? music)\\s?(?.*)?\\s?(?on device|to device)\\s?(?.*)", - "altcommand": "(?shuffle)\\s?(?my|me)?\\s?(? music)\\s?(?.*)?", + "command": "(?shuffle)\\s?(?my|me)?\\s?(? music|favorite songs)\\s?(?.*)?\\s?(?on device|to device)\\s?(?.*)", + "altcommand": "(?shuffle)\\s?(?my|me)?\\s?(? music|favorite songs)\\s?(?.*)?", "shuffle": true, "commandtemplates": [ "Play music", "Play my music", - "Listen to my music " + "Listen to my music ", + "shuffle my favorite songs" ] } ] @@ -221,8 +235,11 @@ { "actionid": "play", "sourceid": "latestepisodes", - "command": "(?play)\\s?(?my|me)?\\s?(?latest episodes)\\s?(?on device|to device)\\s?(?.*)", - "altcommand": "(?play)\\s?(?my|me)?\\s?(?latest episodes)", + "command": "(?play)\\s?(?my|me)?\\s?(?latest episodes)\\s?(?on device|to device)\\s?(?.*)", + "altcommand": "(?play)\\s?(?my|me)?\\s?(?latest episodes)", + "filters": [ "unplayed" ], + "sortBy": "datecreated", + "sortOrder": "Descending", "commandtemplates": [ "Play my latest episodes" ] } ] @@ -266,12 +283,12 @@ "command": "(?show|display|go to|view)\\s?(?my|me)?\\s?(?Live tv scheduled)", "commandtemplates": [ "Show live tv scheduled" ] }, - { + { "actionid": "show", "sourceid": "livetv", "menuid": "series", "command": "(?show|display|go to|view)\\s?(?my|me)?\\s?(?Live tv series)", - "commandtemplates": ["Show live tv series"] + "commandtemplates": [ "Show live tv series" ] } ] }, diff --git a/dashboard-ui/voice/grammar/grammar.json b/dashboard-ui/voice/grammar/grammar.json index 0a24a4bc78..7c3e4f07e9 100644 --- a/dashboard-ui/voice/grammar/grammar.json +++ b/dashboard-ui/voice/grammar/grammar.json @@ -141,6 +141,19 @@ "Play my music", "Listen to my music " ] + }, + { + "actionid": "play", + "sourceid": "latestmovies", + "command": "(?play)\\s?(?my|me)?\\s?(?latest movies|latest films)\\s?(?on device|to device)\\s?(?.*)", + "altcommand": "(?play)\\s?(?my|me)?\\s?(?latest movies|latest films)", + "filters": [ "unplayed" ], + "sortBy": "datecreated", + "sortOrder": "Descending", + "commandtemplates": [ + "Play my latest movies", + "Play latest films" + ] } ] }, @@ -181,13 +194,14 @@ { "actionid": "shuffle", "sourceid": "music", - "command": "(?shuffle)\\s?(?my|me)?\\s?(? music)\\s?(?.*)?\\s?(?on device|to device)\\s?(?.*)", - "altcommand": "(?shuffle)\\s?(?my|me)?\\s?(? music)\\s?(?.*)?", + "command": "(?shuffle)\\s?(?my|me)?\\s?(? music|favorite songs)\\s?(?.*)?\\s?(?on device|to device)\\s?(?.*)", + "altcommand": "(?shuffle)\\s?(?my|me)?\\s?(? music|favorite songs)\\s?(?.*)?", "shuffle": true, "commandtemplates": [ "Play music", "Play my music", - "Listen to my music " + "Listen to my music ", + "shuffle my favorite songs" ] } ] @@ -221,8 +235,11 @@ { "actionid": "play", "sourceid": "latestepisodes", - "command": "(?play)\\s?(?my|me)?\\s?(?latest episodes)\\s?(?on device|to device)\\s?(?.*)", - "altcommand": "(?play)\\s?(?my|me)?\\s?(?latest episodes)", + "command": "(?play)\\s?(?my|me)?\\s?(?latest episodes)\\s?(?on device|to device)\\s?(?.*)", + "altcommand": "(?play)\\s?(?my|me)?\\s?(?latest episodes)", + "filters": [ "unplayed" ], + "sortBy": "datecreated", + "sortOrder": "Descending", "commandtemplates": [ "Play my latest episodes" ] } ] @@ -266,12 +283,12 @@ "command": "(?show|display|go to|view)\\s?(?my|me)?\\s?(?Live tv scheduled)", "commandtemplates": [ "Show live tv scheduled" ] }, - { + { "actionid": "show", "sourceid": "livetv", "menuid": "series", "command": "(?show|display|go to|view)\\s?(?my|me)?\\s?(?Live tv series)", - "commandtemplates": ["Show live tv series"] + "commandtemplates": [ "Show live tv series" ] } ] }, diff --git a/dashboard-ui/voice/voice.js b/dashboard-ui/voice/voice.js index d8ea6c3c70..ac8b7b5f71 100644 --- a/dashboard-ui/voice/voice.js +++ b/dashboard-ui/voice/voice.js @@ -6,8 +6,6 @@ define(['paperdialoghelper'], function (paperDialogHelper) { var commandgroups = getGrammarCommands(lang); - - /// Shuffle array. /// The array. /// array