Add mpd status mapping

This commit is contained in:
badaix 2021-05-28 09:06:23 +02:00
parent 6e6b63ec26
commit 283c3d2c9b
3 changed files with 68 additions and 8 deletions

View file

@ -255,7 +255,7 @@ void PcmStream::onControlMsg(const std::string& msg)
{
jsonrpcpp::notification_ptr notification = dynamic_pointer_cast<jsonrpcpp::Notification>(entity);
LOG(INFO, LOG_TAG) << "Notification method: " << notification->method() << ", params: " << notification->params().to_json() << "\n";
if (notification->method() == "Stream.OnMetadata")
if (notification->method() == "Player.Metadata")
{
setMeta(notification->params().to_json());
}