Set/read composer field with HTTP files
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user