Get path from query paramter, or URL's path

This commit is contained in:
craig.p.drummond
2012-12-30 22:14:35 +00:00
committed by craig.p.drummond
parent 05ab47d2a3
commit 610eab1309

View File

@@ -187,7 +187,11 @@ Song HttpServer::decodeUrl(const QString &url) const
if (u.hasQueryItem("track")) {
s.track=u.queryItemValue("track").toInt();
}
s.file=url;
if (u.hasQueryItem("file")) {
s.file=u.queryItemValue("file");
} else {
s.file=u.path();
}
}
return s;