Also read performer for display in context view

This commit is contained in:
craig.p.drummond
2014-06-11 18:25:29 +00:00
committed by craig.p.drummond
parent 68e39ed20a
commit e751c09364
18 changed files with 125 additions and 88 deletions

View File

@@ -166,8 +166,8 @@ QByteArray HttpServer::encodeUrl(const Song &s)
if (!s.albumartist.isEmpty()) {
query.addQueryItem("albumartist", s.albumartist);
}
if (!s.composer.isEmpty()) {
query.addQueryItem("composer", s.composer);
if (!s.composer().isEmpty()) {
query.addQueryItem("composer", s.composer());
}
if (!s.title.isEmpty()) {
query.addQueryItem("title", s.title);
@@ -255,7 +255,7 @@ Song HttpServer::decodeUrl(const QUrl &url) const
s.albumartist=q.queryItemValue("albumartist");
}
if (q.hasQueryItem("composer")) {
s.composer=q.queryItemValue("composer");
s.setComposer(q.queryItemValue("composer"));
}
if (q.hasQueryItem("title")) {
s.title=q.queryItemValue("title");