- 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:
craig.p.drummond@gmail.com
2012-05-12 20:07:32 +00:00
committed by craig.p.drummond@gmail.com
parent 4c79fa7399
commit f64437753d
2 changed files with 13 additions and 3 deletions

View File

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