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.


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:

button = KEY_1
config = curl ''

Thankyou for all your help.