LeviatanScans fixes (#13370)
* update LeviatanScans baseurl * LeviatanScans fix date in chapter title
This commit is contained in:
parent
57df836362
commit
79a44334bb
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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")),
|
||||
|
|
Loading…
Reference in New Issue