Skip to content

Commit

Permalink
Reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
badaix committed Jul 23, 2024
1 parent 7b596ec commit ecfffc7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions server/streamreader/pcm_stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -541,9 +541,12 @@ void PcmStream::setProperties(const Properties& properties)
auto md5 = ImageCache::instance().setImage(getName(), std::move(data), props.metadata->art_data->extension);

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;
} else {
}
else
{
url << server_settings_.http.url_prefix << "/__image_cache?name=" << md5;
}
props.metadata->art_url = url.str();
Expand Down

0 comments on commit ecfffc7

Please sign in to comment.