Bearcat Şándor <
bearca...@gmail.com> writes:
[...]
> since it uses mpd clients to play music and not it's own, i can't
> search fields that are not allowed by MPC. So i can't do mpc searchadd
> lyrics "bathroom window" and pull up the Beatles track.
>
> Thank you too Peter! Looking at Peter's suggestion, i'm trying to use that
> play command setting, but i'm getting " WARNING Stopping actor due to
> decode problem, data supplied by client was not valid UTF-8" That seems to
> be coming from network.py which is from mopidy itself. I'll keep digging,
> but thanks for starting the hole, you two!
If the beet database is available in the local computer, what would you
need mpd for ? Couldn't you just use beet play ?
AFAICU, mpd is useful when you want to play music on a remote headless
computer.
In such a case, you could also try :
1. one of the mopidy web interface¹, most of them allow beet query
2. the mopidy json rpc API or beet web API to create a simple search
query. For instance, you could simply issue a command to find the ids.
And then construct the play list from that:
--8<---------------cut here---------------start------------->8---
curl
http://127.0.0.1:8337/item/query/lyrics%3Abathroom%20window|json_pp|gi '"id"'|sed -r 's|^.+: (.+),$|\1|'|while read id
do
mpc add "beets:track;${id}"
done
--8<---------------cut here---------------end--------------->8---
The code is ugly, but it highlights the possibility.
I am starting to use beets+mopidy, so I am also looking for all the
possibilities. It looks like they allow a quite huge level of hackability
without a lot of effort.
Hope that helps,
¹
https://docs.mopidy.com/en/latest/ext/web