Commit b43e4d90 authored by Andrea Scarpino's avatar Andrea Scarpino

API_URL is no more used

parent 1a8fd47d
......@@ -2,4 +2,4 @@
*.pro.user
*.pro.user.*
*.autosave
geniusapi_secret.h
src/geniusapi_secret.h
......@@ -37,7 +37,7 @@
#include "lyric.h"
const static QString API_URL = QStringLiteral("http://lyrics.wikia.com/api.php");
const static QString SITE_URL = QStringLiteral("http://lyrics.wikia.com");
LyricsWikiAPI::LyricsWikiAPI(QObject *parent) :
Provider(parent)
......@@ -56,7 +56,7 @@ void LyricsWikiAPI::getLyric(const QString &artist, const QString &song)
{
qDebug() << "Requesting lyric for artist" << artist << ", song" << song;
QUrl url(QStringLiteral("http://lyrics.wikia.com"));
QUrl url(SITE_URL);
QString artNoSpaces(artist);
artNoSpaces.replace(QChar::Space, QChar::fromLatin1('_'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment