Set/read composer field with HTTP files

This commit is contained in:
craig.p.drummond
2013-10-15 17:17:44 +00:00
parent c295903424
commit 3d39aa60c3

View File

@@ -153,6 +153,9 @@ QByteArray HttpServer::encodeUrl(const Song &s) const
if (!s.albumartist.isEmpty()) {
query.addQueryItem("albumartist", s.albumartist);
}
if (!s.composer.isEmpty()) {
query.addQueryItem("composer", s.composer);
}
if (!s.title.isEmpty()) {
query.addQueryItem("title", s.title);
}
@@ -219,6 +222,9 @@ Song HttpServer::decodeUrl(const QUrl &url) const
if (q.hasQueryItem("albumartist")) {
s.albumartist=q.queryItemValue("albumartist");
}
if (q.hasQueryItem("composer")) {
s.composer=q.queryItemValue("composer");
}
if (q.hasQueryItem("title")) {
s.title=q.queryItemValue("title");
}