mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-22 03:26:05 -04:00
Merge pull request #47 from kiwix/fix_catalog_url
Correctly set the catalog host and port.
This commit is contained in:
commit
f30c4aace5
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user