mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-10 07:36:41 +02:00
Make metadata part of the properties
This commit is contained in:
parent
5cebc64e15
commit
004ea21e3f
13 changed files with 134 additions and 153 deletions
|
@ -161,7 +161,7 @@ void LibrespotStream::onStderrMsg(const std::string& line)
|
|||
Metatags meta;
|
||||
meta.artist = std::vector<std::string>{j["ARTIST"].get<std::string>()};
|
||||
meta.title = j["TITLE"].get<std::string>();
|
||||
setMetadata(meta);
|
||||
// TODO setMetadata(meta);
|
||||
}
|
||||
else if (regex_search(line, m, re_track_loaded))
|
||||
{
|
||||
|
@ -169,7 +169,7 @@ void LibrespotStream::onStderrMsg(const std::string& line)
|
|||
Metatags meta;
|
||||
meta.title = string(m[1]);
|
||||
meta.duration = cpt::stod(m[2]) / 1000.;
|
||||
setMetadata(meta);
|
||||
// TODO setMetadata(meta);
|
||||
Properties properties;
|
||||
// properties.can_seek = true;
|
||||
// properties.can_control = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue