Add support for cover raw images

This commit is contained in:
badaix 2021-09-06 22:19:35 +02:00
parent a5f79cdf90
commit befc8da440
12 changed files with 210 additions and 27 deletions

View file

@ -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);
}
}