add CLI play-playlist option, to play given playlist name. (#608)
* add CLI play-playlist option, to play given playlist name. * Apply MR change requests
This commit is contained in:
committed by
GitHub
parent
5b5f728f49
commit
3a9a1f0a94
@@ -2274,6 +2274,14 @@ void MainWindow::CommandlineOptionsReceived(const CommandlineOptions &options) {
|
||||
case CommandlineOptions::Player_Next:
|
||||
app_->player()->Next();
|
||||
break;
|
||||
case CommandlineOptions::Player_PlayPlaylist:
|
||||
if (options.playlist_name().isEmpty()) {
|
||||
qLog(Error) << "ERROR: playlist name missing";
|
||||
}
|
||||
else {
|
||||
app_->player()->PlayPlaylist(options.playlist_name());
|
||||
}
|
||||
break;
|
||||
case CommandlineOptions::Player_RestartOrPrevious:
|
||||
app_->player()->RestartOrPrevious();
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user