From ea2f15ba692b9e8029577f981b10dc8cb614717f Mon Sep 17 00:00:00 2001
From: Pavka
Date: Wed, 16 Mar 2022 20:17:07 +0300
Subject: [PATCH] [Ru]Mangahub. Chapters move to /chapters/... url (#11145)
---
src/ru/mangahub/build.gradle | 2 +-
.../src/eu/kanade/tachiyomi/extension/ru/mangahub/Mangahub.kt | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/ru/mangahub/build.gradle b/src/ru/mangahub/build.gradle
index 9a3cc71a8..610e7a459 100644
--- a/src/ru/mangahub/build.gradle
+++ b/src/ru/mangahub/build.gradle
@@ -6,7 +6,7 @@ ext {
extName = 'Mangahub'
pkgNameSuffix = 'ru.mangahub'
extClass = '.Mangahub'
- extVersionCode = 13
+ extVersionCode = 14
}
dependencies {
diff --git a/src/ru/mangahub/src/eu/kanade/tachiyomi/extension/ru/mangahub/Mangahub.kt b/src/ru/mangahub/src/eu/kanade/tachiyomi/extension/ru/mangahub/Mangahub.kt
index 53ab52137..e83ea1119 100644
--- a/src/ru/mangahub/src/eu/kanade/tachiyomi/extension/ru/mangahub/Mangahub.kt
+++ b/src/ru/mangahub/src/eu/kanade/tachiyomi/extension/ru/mangahub/Mangahub.kt
@@ -78,7 +78,7 @@ open class Mangahub : ParsedHttpSource() {
override fun searchMangaNextPageSelector(): String? = popularMangaNextPageSelector()
override fun chapterListRequest(manga: SManga): Request {
- return GET(baseUrl + manga.url + "/chapters", headers)
+ return GET(baseUrl + ("/chapters/" + manga.url.removePrefix("/title/")), headers)
}
override fun mangaDetailsParse(document: Document): SManga {