From e46c3a97562927c15dc46263798386d7edb87daa Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Wed, 31 Oct 2018 16:08:03 +0100 Subject: [PATCH] Correctly set the catalog host and port. --- src/contentmanager.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/contentmanager.cpp b/src/contentmanager.cpp index e85702f..cbf268a 100644 --- a/src/contentmanager.cpp +++ b/src/contentmanager.cpp @@ -200,7 +200,8 @@ void ContentManager::setCurrentLanguage(QString language) emit(currentLangChanged()); } -#define CATALOG_HOST "http://library.kiwix.org" +#define CATALOG_HOST "library.kiwix.org" +#define CATALOG_PORT 80 void ContentManager::updateRemoteLibrary() { QUrlQuery query; query.addQueryItem("lang", m_currentLanguage); @@ -208,8 +209,8 @@ void ContentManager::updateRemoteLibrary() { query.addQueryItem("start", QString::number(getStartBookIndex())); QUrl url; url.setScheme("http"); - url.setHost("localhost"); - url.setPort(8080); + url.setHost(CATALOG_HOST); + url.setPort(CATALOG_PORT); url.setPath("/catalog/search.xml"); url.setQuery(query); qInfo() << "Downloading" << url;