Can still use HTTP server without TagLib - its just not as good...

This commit is contained in:
craig.p.drummond
2013-10-18 18:57:44 +00:00
committed by craig.p.drummond
parent 97dea22fb6
commit 53e8b7c4ad
13 changed files with 16 additions and 68 deletions

View File

@@ -23,7 +23,9 @@
#include "httpserver.h"
#include "httpsocket.h"
#ifdef TAGLIB_FOUND
#include "tags.h"
#endif
#include "settings.h"
#include "thread.h"
#include <QFile>
@@ -184,6 +186,7 @@ QByteArray HttpServer::encodeUrl(const Song &s) const
return url.toEncoded();
}
#ifdef TAGLIB_FOUND
QByteArray HttpServer::encodeUrl(const QString &file) const
{
#ifdef Q_OS_WIN
@@ -206,6 +209,7 @@ QByteArray HttpServer::encodeUrl(const QString &file) const
#endif
return encodeUrl(s);
}
#endif
Song HttpServer::decodeUrl(const QString &url) const
{