mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-12 16:46:42 +02:00
Rename MetaTags to MetaData
This commit is contained in:
parent
607f1db77f
commit
8e1f92acb1
13 changed files with 54 additions and 62 deletions
|
@ -158,21 +158,21 @@ void LibrespotStream::onStderrMsg(const std::string& line)
|
|||
// Patched version
|
||||
LOG(INFO, LOG_TAG) << "metadata: <" << m[1] << ">\n";
|
||||
json j = json::parse(m[1].str());
|
||||
Metatags meta;
|
||||
Metadata meta;
|
||||
meta.artist = std::vector<std::string>{j["ARTIST"].get<std::string>()};
|
||||
meta.title = j["TITLE"].get<std::string>();
|
||||
Properties properties;
|
||||
properties.metatags = meta;
|
||||
properties.metadata = std::move(meta);
|
||||
setProperties(properties);
|
||||
}
|
||||
else if (regex_search(line, m, re_track_loaded))
|
||||
{
|
||||
LOG(INFO, LOG_TAG) << "metadata: <" << m[1] << ">\n";
|
||||
Metatags meta;
|
||||
Metadata meta;
|
||||
meta.title = string(m[1]);
|
||||
meta.duration = cpt::stod(m[2]) / 1000.;
|
||||
Properties properties;
|
||||
properties.metatags = meta;
|
||||
properties.metadata = std::move(meta);
|
||||
setProperties(properties);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue