Play album using ir control

Hi, I am trying to get volumio to load an album into the playlist and play when I press a button on my IR control.

I can get it to work by using

mpc search album "whatever" | mpc add ; mpc play

but it doesnt fill in the playlist or show up in volumio. Can anyone point me in the right direction please.

Thanks

For anyone who may be interested, I used REST API to solve this.

First I converted the album to a playlist then in the .lirc file I added this:

begin
prog=irexec
button = KEY_1
config = curl '192.168.1.97:3000/api/v1/commands/?cmd=playplaylist&name=Hup'
end

Thankyou for all your help.