diff --git a/src/zh/bainianmanga/build.gradle b/src/zh/bainianmanga/build.gradle index 25ca0930e..c265ef757 100755 --- a/src/zh/bainianmanga/build.gradle +++ b/src/zh/bainianmanga/build.gradle @@ -6,7 +6,7 @@ ext { extName = 'BainianManga' pkgNameSuffix = 'zh.bainianmanga' extClass = '.BainianManga' - extVersionCode = 5 + extVersionCode = 6 } apply from: "$rootDir/common.gradle" diff --git a/src/zh/bainianmanga/src/eu/kanade/tachiyomi/extension/zh/bainianmanga/BainianManga.kt b/src/zh/bainianmanga/src/eu/kanade/tachiyomi/extension/zh/bainianmanga/BainianManga.kt index a2d55c5fb..18428f804 100755 --- a/src/zh/bainianmanga/src/eu/kanade/tachiyomi/extension/zh/bainianmanga/BainianManga.kt +++ b/src/zh/bainianmanga/src/eu/kanade/tachiyomi/extension/zh/bainianmanga/BainianManga.kt @@ -61,7 +61,8 @@ class BainianManga : ParsedHttpSource() { override fun popularMangaSelector() = "ul#list_img > li" override fun latestUpdatesSelector() = popularMangaSelector() override fun searchMangaSelector() = popularMangaSelector() - override fun chapterListSelector() = "ul.jslist01 > li" + // Ignore first item, which is link to another comic site + override fun chapterListSelector() = "ul.jslist01 > li:not(:first-child)" override fun searchMangaNextPageSelector() = ".pagination > li:last-child > a" override fun popularMangaNextPageSelector() = searchMangaNextPageSelector() @@ -107,7 +108,10 @@ class BainianManga : ParsedHttpSource() { .substringAfter("var z_img='") .substringBefore("';") ).mapIndexed { i, imageUrl -> - Page(i, "", imageUrl) + when { + imageUrl.startsWith("http") -> Page(i, "", imageUrl) + else -> Page(i, "", "https://img.hngxgt.net/$imageUrl") + } } }