diff --git a/src/ru/mangahub/build.gradle b/src/ru/mangahub/build.gradle index 395d8536c..5e0463bc5 100644 --- a/src/ru/mangahub/build.gradle +++ b/src/ru/mangahub/build.gradle @@ -5,8 +5,8 @@ ext { appName = 'Tachiyomi: Mangahub' pkgNameSuffix = 'ru.mangahub' extClass = '.Mangahub' - extVersionCode = 1 - extVersionSuffix = 1 + extVersionCode = 2 + extVersionSuffix = 2 libVersion = '1.2' } 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 5c8f58e9d..65affcd9b 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 @@ -21,10 +21,10 @@ open class Mangahub : ParsedHttpSource() { override val supportsLatest = true override fun popularMangaRequest(page: Int): Request = - GET("$baseUrl/explore?search[sort]=rating&search[dateStart][left_number]=1972&search[dateStart][right_number]=2018&page=${page + 1}", headers) + GET("$baseUrl/explore?search[sort]=rating&search[dateStart][left_number]=1972&search[dateStart][right_number]=2018&page=$page", headers) override fun latestUpdatesRequest(page: Int): Request = - GET("$baseUrl/explore?search[sort]=update&search[dateStart][left_number]=1972&search[dateStart][right_number]=2018&page=${page + 1}", headers) + GET("$baseUrl/explore?search[sort]=update&search[dateStart][left_number]=1972&search[dateStart][right_number]=2018&page=$page", headers) override fun popularMangaSelector() = "div.list-element" @@ -46,7 +46,7 @@ open class Mangahub : ParsedHttpSource() { override fun latestUpdatesNextPageSelector() = ".next" override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request { - return GET("$baseUrl/search/manga?query=$query&sort=score&page=${page + 1}") + return GET("$baseUrl/search/manga?query=$query&sort=score&page=$page") } override fun searchMangaSelector() = popularMangaSelector()