- Only attempt to load a cover from MPD dir if the song actually has a file path
- For streamed songs, add actual path to URL query
This commit is contained in:
committed by
craig.p.drummond@gmail.com
parent
4c79fa7399
commit
f64437753d
@@ -138,6 +138,9 @@ QByteArray HttpServer::encodeUrl(const Song &s) const
|
||||
if (s.track) {
|
||||
url.addQueryItem("track", QString::number(s.track));
|
||||
}
|
||||
if (!s.file.isEmpty()) {
|
||||
url.addQueryItem("file", s.file);
|
||||
}
|
||||
url.addQueryItem("cantata", "song");
|
||||
return url.toEncoded();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user