Mangaspw fix (#7949)

* Update MMRCMS.kt

* Update MMRCMSSources.kt
This commit is contained in:
Techeira Damián 2021-07-03 07:19:26 -03:00 committed by GitHub
parent 4d4eebb6ac
commit 1882705bd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -371,7 +371,7 @@ abstract class MMRCMS(
val chapter = SChapter.create()
try {
val titleWrapper = if (name == "Mangas.pw") element.select("i a").first() else element.select("[class^=chapter-title-rtl]").first()
val titleWrapper = if (name == "Mangas.pw") element.select("i a").last() else element.select("[class^=chapter-title-rtl]").first()
// Some websites add characters after "..-rtl" thus the need of checking classes that starts with that
val url = titleWrapper.getElementsByTag("a")
.first { it.attr("href").contains(urlRegex) }

View File

@ -32,7 +32,7 @@ class MMRCMSSources {
override val overrideVersionCode: Int = 0,
) : SourceData()
}
val version: Int = 3
val version: Int = 4
val sourceList: List<SourceData.Single> = listOf(
SourceData.Single("مانجا اون لاين", "https://onma.me", "ar", className = "onma"),
SourceData.Single("Read Comics Online", "https://readcomicsonline.ru", "en"),