mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-27 23:17:04 +02:00
Reformat code
This commit is contained in:
parent
b5284301c5
commit
11d7d98186
1 changed files with 5 additions and 2 deletions
|
@ -541,9 +541,12 @@ void PcmStream::setProperties(const Properties& properties)
|
||||||
auto md5 = ImageCache::instance().setImage(getName(), std::move(data), props.metadata->art_data->extension);
|
auto md5 = ImageCache::instance().setImage(getName(), std::move(data), props.metadata->art_data->extension);
|
||||||
|
|
||||||
std::stringstream url;
|
std::stringstream url;
|
||||||
if (server_settings_.http.url_prefix == "") {
|
if (server_settings_.http.url_prefix.empty())
|
||||||
|
{
|
||||||
url << "http://" << server_settings_.http.host << ":" << server_settings_.http.port << "/__image_cache?name=" << md5;
|
url << "http://" << server_settings_.http.host << ":" << server_settings_.http.port << "/__image_cache?name=" << md5;
|
||||||
} else {
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
url << server_settings_.http.url_prefix << "/__image_cache?name=" << md5;
|
url << server_settings_.http.url_prefix << "/__image_cache?name=" << md5;
|
||||||
}
|
}
|
||||||
props.metadata->art_url = url.str();
|
props.metadata->art_url = url.str();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue