LeviatanScans fixes (#13370)

* update LeviatanScans baseurl

* LeviatanScans fix date in chapter title
This commit is contained in:
Basara-Hatake 2022-09-08 23:11:10 +02:00 committed by GitHub
parent 57df836362
commit 79a44334bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 4 deletions

View File

@ -16,7 +16,7 @@ class LeviatanScansFactory : SourceFactory {
)
}
class LeviatanScansEN : Madara("Leviatan Scans", "https://leviatanscans.com", "en", SimpleDateFormat("MMM dd, yyyy", Locale.US)) {
class LeviatanScansEN : Madara("Leviatan Scans", "https://en.leviatanscans.com", "en", SimpleDateFormat("MMM dd, yyyy", Locale.US)) {
override val useNewChapterEndpoint: Boolean = true
override fun popularMangaFromElement(element: Element) =
@ -28,8 +28,17 @@ class LeviatanScansEN : Madara("Leviatan Scans", "https://leviatanscans.com", "e
override fun searchMangaFromElement(element: Element) =
replaceRandomUrlPartInManga(super.searchMangaFromElement(element))
override fun chapterFromElement(element: Element) =
replaceRandomUrlPartInChapter(super.chapterFromElement(element))
override fun chapterFromElement(element: Element): SChapter {
val chapter = replaceRandomUrlPartInChapter(super.chapterFromElement(element))
with(element) {
selectFirst(chapterUrlSelector)?.let { urlElement ->
chapter.name = urlElement.ownText()
}
}
return chapter
}
override val mangaDetailsSelectorStatus = ".post-content_item:contains(Status) .summary-content"
}

View File

@ -13,7 +13,7 @@ class MadaraGenerator : ThemeSourceGenerator {
override val baseVersionCode: Int = 24
override val sources = listOf(
MultiLang("Leviatan Scans", "https://leviatanscans.com", listOf("en", "es"), className = "LeviatanScansFactory", overrideVersionCode = 11),
MultiLang("Leviatan Scans", "https://leviatanscans.com", listOf("en", "es"), className = "LeviatanScansFactory", overrideVersionCode = 12),
MultiLang("MangaForFree.net", "https://mangaforfree.net", listOf("en", "ko", "all"), isNsfw = true, className = "MangaForFreeFactory", pkgName = "mangaforfree", overrideVersionCode = 1),
MultiLang("Manhwa18.cc", "https://manhwa18.cc", listOf("en", "ko", "all"), isNsfw = true, className = "Manhwa18CcFactory", pkgName = "manhwa18cc", overrideVersionCode = 2),
MultiLang("Olympus Scanlation", "https://olympusscanlation.com", listOf("es", "pt-BR")),