mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-10 15:46:42 +02:00
Add support for cover raw images
This commit is contained in:
parent
a5f79cdf90
commit
befc8da440
12 changed files with 210 additions and 27 deletions
|
@ -161,7 +161,9 @@ 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>();
|
||||
// TODO setMetadata(meta);
|
||||
Properties properties;
|
||||
properties.metatags = meta;
|
||||
setProperties(properties);
|
||||
}
|
||||
else if (regex_search(line, m, re_track_loaded))
|
||||
{
|
||||
|
@ -169,10 +171,8 @@ void LibrespotStream::onStderrMsg(const std::string& line)
|
|||
Metatags meta;
|
||||
meta.title = string(m[1]);
|
||||
meta.duration = cpt::stod(m[2]) / 1000.;
|
||||
// TODO setMetadata(meta);
|
||||
Properties properties;
|
||||
// properties.can_seek = true;
|
||||
// properties.can_control = true;
|
||||
properties.metatags = meta;
|
||||
setProperties(properties);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue