Fix mpd bug execution with radios

This commit is contained in:
2021-10-03 17:20:14 +02:00
parent 2960afd9bd
commit 7aafa935e1
2 changed files with 12 additions and 21 deletions

View File

@ -13,6 +13,7 @@ using MpcNET;
using MpcNET.Commands.Database;
using MpcNET.Commands.Playback;
using MpcNET.Commands.Queue;
using MpcNET.Commands.Reflection;
using MpcNET.Commands.Status;
using MpcNET.Message;
using MpcNET.Types;
@ -456,5 +457,11 @@ namespace unison
Debug.WriteLine("AddCommand path: " + Uri);
SendCommand(new AddCommand(Uri));
}
public void ClearAddAndPlay(string Uri)
{
CommandList commandList = new CommandList(new IMpcCommand<object>[] { new ClearCommand(), new AddCommand(Uri), new PlayCommand(0) });
SendCommand(commandList);
}
}
}