diff --git a/src/ru/libmanga/build.gradle b/src/ru/libmanga/build.gradle index d77b57277..5340641a0 100644 --- a/src/ru/libmanga/build.gradle +++ b/src/ru/libmanga/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'MangaLib' pkgNameSuffix = 'ru.libmanga' extClass = '.LibManga' - extVersionCode = 46 + extVersionCode = 47 libVersion = '1.2' } diff --git a/src/ru/libmanga/src/eu/kanade/tachiyomi/extension/ru/libmanga/LibManga.kt b/src/ru/libmanga/src/eu/kanade/tachiyomi/extension/ru/libmanga/LibManga.kt index 9e4dfcd4a..b76ffcfc5 100644 --- a/src/ru/libmanga/src/eu/kanade/tachiyomi/extension/ru/libmanga/LibManga.kt +++ b/src/ru/libmanga/src/eu/kanade/tachiyomi/extension/ru/libmanga/LibManga.kt @@ -230,7 +230,7 @@ class LibManga : ConfigurableSource, HttpSource() { for (currentBranch in branches.withIndex()) { val teamId = branches[currentBranch.index]["id"].int chapters = chaptersList - ?.filter { it["branch_id"].int == teamId && it["status"].nullInt != 2 } + ?.filter { it["branch_id"].nullInt == teamId && it["status"].nullInt != 2 } ?.map { chapterFromElement(it, sortingList, slug, teamId, branches) } chapters?.let { tempChaptersList.addAll(it) } } @@ -241,14 +241,14 @@ class LibManga : ConfigurableSource, HttpSource() { for (currentBranch in branches.withIndex()) { val teamId = branches[currentBranch.index]["id"].int val chapterSize = chaptersList - ?.filter { it["branch_id"].int == teamId }!!.size + ?.filter { it["branch_id"].nullInt == teamId }!!.size sizesChaptersLists.add(chapterSize) } val max = sizesChaptersLists.indexOfFirst { it == sizesChaptersLists.maxOrNull() ?: 0 } val teamId = branches[max]["id"].int chapters = chaptersList - ?.filter { it["branch_id"].int == teamId && it["status"].nullInt != 2 } + ?.filter { it["branch_id"].nullInt == teamId && it["status"].nullInt != 2 } ?.map { chapterFromElement(it, sortingList, slug, teamId, branches) } } "ms_active" -> { @@ -258,7 +258,7 @@ class LibManga : ConfigurableSource, HttpSource() { if (teams[currentTeam.index]["is_active"].int == 1) { val teamId = branches[currentBranch.index]["id"].int chapters = chaptersList - ?.filter { it["branch_id"].int == teamId && it["status"].nullInt != 2 } + ?.filter { it["branch_id"].nullInt == teamId && it["status"].nullInt != 2 } ?.map { chapterFromElement(it, sortingList, slug, teamId, branches) } break }