From 169f83b59415578c289b721cfb23caf86a1a49dd Mon Sep 17 00:00:00 2001 From: Eshlender <35057681+e-shl@users.noreply.github.com> Date: Sat, 3 Feb 2024 22:30:52 +0500 Subject: [PATCH] [RU]Remanga fix LICENSED Hides available chapters! (#959) --- src/ru/remanga/build.gradle | 2 +- .../src/eu/kanade/tachiyomi/extension/ru/remanga/Remanga.kt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ru/remanga/build.gradle b/src/ru/remanga/build.gradle index 4f8c9f907..07847f42e 100644 --- a/src/ru/remanga/build.gradle +++ b/src/ru/remanga/build.gradle @@ -1,7 +1,7 @@ ext { extName = 'Remanga' extClass = '.Remanga' - extVersionCode = 84 + extVersionCode = 85 } apply from: "$rootDir/common.gradle" diff --git a/src/ru/remanga/src/eu/kanade/tachiyomi/extension/ru/remanga/Remanga.kt b/src/ru/remanga/src/eu/kanade/tachiyomi/extension/ru/remanga/Remanga.kt index 7c63c8550..669ab9111 100644 --- a/src/ru/remanga/src/eu/kanade/tachiyomi/extension/ru/remanga/Remanga.kt +++ b/src/ru/remanga/src/eu/kanade/tachiyomi/extension/ru/remanga/Remanga.kt @@ -338,7 +338,7 @@ class Remanga : ConfigurableSource, HttpSource() { 2 -> SManga.ON_HIATUS // Заморожен 3 -> SManga.ON_HIATUS // Нет переводчика 4 -> SManga.ONGOING // Анонс - 5 -> SManga.LICENSED // Лицензировано + // 5 -> SManga.LICENSED // Лицензировано // Hides available chapters! else -> SManga.UNKNOWN } } @@ -439,7 +439,7 @@ class Remanga : ConfigurableSource, HttpSource() { val series = json.decodeFromJsonElement(content) branches[series.dir] = series.branches mangaIDs[series.dir] = series.id - if (parseStatus(series.status.id) == SManga.LICENSED && series.branches.maxByOrNull { selector(it) }!!.count_chapters == 0) { + if (series.status.id == 5 && series.branches.maxByOrNull { selector(it) }!!.count_chapters == 0) { throw Exception("Лицензировано - Нет глав") } series.branches @@ -472,7 +472,7 @@ class Remanga : ConfigurableSource, HttpSource() { override fun fetchChapterList(manga: SManga): Observable> { val branch = branches.getOrElse(manga.url.substringAfter("/api/titles/").substringBefore("/").substringBefore("?")) { mangaBranches(manga) } return when { - manga.status == SManga.LICENSED && branch.maxByOrNull { selector(it) }!!.count_chapters == 0 -> { + branch.maxByOrNull { selector(it) }!!.count_chapters == 0 -> { Observable.error(Exception("Лицензировано - Нет глав")) } branch.isEmpty() -> {