aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-05-12 19:49:54 +0200
committerdec05eba <dec05eba@protonmail.com>2021-05-12 19:49:54 +0200
commit34cdb1189d8a11fe1deb1189d86c5c77b33c7653 (patch)
tree0f6fd56fa10a6db4059ff986b1e5db67ba23dc3e /src
parentb69bc964dd6053d9a20803f79a2dfcb7a51dc83a (diff)
Fix mangadex chapter order
Diffstat (limited to 'src')
-rw-r--r--src/plugins/Mangadex.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/Mangadex.cpp b/src/plugins/Mangadex.cpp
index 0b50366..a402bb2 100644
--- a/src/plugins/Mangadex.cpp
+++ b/src/plugins/Mangadex.cpp
@@ -125,7 +125,7 @@ namespace QuickMedia {
}
static PluginResult get_chapters_for_manga(Page *page, const std::string &manga_id, int page_num, BodyItems &result_items) {
- std::string request_url = "https://api.mangadex.org/chapter?manga=" + manga_id + "&limit=100&offset=" + std::to_string(page_num * 100) + "&order[publishAt]=desc";
+ std::string request_url = "https://api.mangadex.org/manga/" + manga_id + "/feed?order[chapter]=desc&limit=100&locales[]=en&offset=" + std::to_string(page_num * 100);
Json::Value json_root;
if(page->download_json(json_root, request_url, {}, true) != DownloadResult::OK)