mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-22 11:37:56 -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());
|
emit(currentLangChanged());
|
||||||
}
|
}
|
||||||
|
|
||||||
#define CATALOG_HOST "http://library.kiwix.org"
|
#define CATALOG_HOST "library.kiwix.org"
|
||||||
|
#define CATALOG_PORT 80
|
||||||
void ContentManager::updateRemoteLibrary() {
|
void ContentManager::updateRemoteLibrary() {
|
||||||
QUrlQuery query;
|
QUrlQuery query;
|
||||||
query.addQueryItem("lang", m_currentLanguage);
|
query.addQueryItem("lang", m_currentLanguage);
|
||||||
@ -208,8 +209,8 @@ void ContentManager::updateRemoteLibrary() {
|
|||||||
query.addQueryItem("start", QString::number(getStartBookIndex()));
|
query.addQueryItem("start", QString::number(getStartBookIndex()));
|
||||||
QUrl url;
|
QUrl url;
|
||||||
url.setScheme("http");
|
url.setScheme("http");
|
||||||
url.setHost("localhost");
|
url.setHost(CATALOG_HOST);
|
||||||
url.setPort(8080);
|
url.setPort(CATALOG_PORT);
|
||||||
url.setPath("/catalog/search.xml");
|
url.setPath("/catalog/search.xml");
|
||||||
url.setQuery(query);
|
url.setQuery(query);
|
||||||
qInfo() << "Downloading" << url;
|
qInfo() << "Downloading" << url;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user