Skip to content

Commit

Permalink
cli: add command refreshShareIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
janbar committed Jul 23, 2020
1 parent eb40e04 commit fe51796
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions backend/cli/noson.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ static bool parseCommand(const std::string& line)
PRINT(" 2:Type ROOM,STARTTIME,RECURRENCE,DURATION,VOLUME,PROGRAM\n");
PRINT(" 3:New value\n");
PRINT(" Program 0 for Buzzer or the index of favorite (see SHOWFV)\n");
PRINT("REFRESHSHAREINDEX Update the music index on Sonos\n");
PRINT("HELP Print this help\n");
PRINT("\n");
}
Expand Down Expand Up @@ -786,6 +787,13 @@ static bool parseCommand(const std::string& line)
else
PERROR("Error: Missing arguments.\n");
}
else if (token == "REFRESHSHAREINDEX")
{
if (gSonos->RefreshShareIndex())
PERROR("Succeeded\n");
else
PERROR("Failed\n");
}
else
{
PERROR("Error: Command invalid.\n");
Expand Down

0 comments on commit fe51796

Please sign in to comment.