Skip to content

Commit fc3a7a0

Browse files
author
Praveen Deepak
committed
Switch OPDS catalog to opds.library.kiwix.org
1 parent 38c3ee2 commit fc3a7a0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/opdsrequestmanager.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ QString OpdsRequestManager::getCatalogHost()
1010
const char* const envVarVal = getenv("KIWIX_CATALOG_HOST");
1111
return envVarVal
1212
? envVarVal
13-
: "library.kiwix.org";
13+
: "opds.library.kiwix.org";
1414
}
1515

1616
int OpdsRequestManager::getCatalogPort()
@@ -41,7 +41,7 @@ void OpdsRequestManager::doUpdate(const QString& currentLanguage, const QString&
4141
query.addQueryItem("category", categoryFilter);
4242
}
4343

44-
auto mp_reply = opdsResponseFromPath("/catalog/v2/entries", query);
44+
auto mp_reply = opdsResponseFromPath("/v2/entries", query);
4545
connect(mp_reply, &QNetworkReply::finished, this, [=]() {
4646
receiveContent(mp_reply);
4747
});
@@ -64,15 +64,15 @@ QNetworkReply* OpdsRequestManager::opdsResponseFromPath(const QString &path, con
6464

6565
void OpdsRequestManager::getLanguagesFromOpds()
6666
{
67-
auto mp_reply = opdsResponseFromPath("/catalog/v2/languages");
67+
auto mp_reply = opdsResponseFromPath("/v2/languages");
6868
connect(mp_reply, &QNetworkReply::finished, this, [=]() {
6969
receiveLanguages(mp_reply);
7070
});
7171
}
7272

7373
void OpdsRequestManager::getCategoriesFromOpds()
7474
{
75-
auto mp_reply = opdsResponseFromPath("/catalog/v2/categories");
75+
auto mp_reply = opdsResponseFromPath("/v2/categories");
7676
connect(mp_reply, &QNetworkReply::finished, this, [=]() {
7777
receiveCategories(mp_reply);
7878
});

0 commit comments

Comments
 (0)