mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-11 08:06:41 +02:00
Add properties to Stream info
This commit is contained in:
parent
edaa218414
commit
5a3559e8e4
2 changed files with 7 additions and 6 deletions
|
@ -82,11 +82,10 @@ void CtrlScript::send(const std::string& msg)
|
|||
|
||||
void CtrlScript::logScript(std::string line)
|
||||
{
|
||||
if (line.empty())
|
||||
return;
|
||||
|
||||
if (line.back() == '\r')
|
||||
line.resize(line.size() - 1);
|
||||
if (line.empty())
|
||||
return;
|
||||
auto tmp = utils::string::tolower_copy(line);
|
||||
AixLog::Severity severity = AixLog::Severity::info;
|
||||
if (tmp.find(" trace") != string::npos)
|
||||
|
@ -381,6 +380,8 @@ json PcmStream::toJson() const
|
|||
|
||||
if (meta_)
|
||||
j["meta"] = meta_->msg;
|
||||
if (properties_)
|
||||
j["properties"] = properties_->toJson();
|
||||
|
||||
return j;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue