MangaFast: update url, remove "Read" prefix from manga title (#9493)

This commit is contained in:
scb261 2021-10-16 12:22:42 +03:00 committed by GitHub
parent da271b361f
commit dd6472114b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 4 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'MangaFast'
pkgNameSuffix = 'en.mangafast'
extClass = '.MangaFast'
extVersionCode = 13
extVersionCode = 14
}
apply from: "$rootDir/common.gradle"

View File

@ -27,7 +27,7 @@ import java.util.Locale
class MangaFast : ParsedHttpSource() {
override val name = "MangaFast"
override val baseUrl = "https://mangafast.net"
override val baseUrl = "https://mangafast.org"
override val lang = "en"
@ -46,7 +46,7 @@ class MangaFast : ParsedHttpSource() {
override fun popularMangaFromElement(element: Element): SManga = SManga.create().apply {
element.select("a").let { a ->
setUrlWithoutDomain(a.attr("href"))
title = a.attr("title")
title = a.select("h4").text().trim()
thumbnail_url = a.select("img").imageFromElement()
}
}
@ -58,7 +58,13 @@ class MangaFast : ParsedHttpSource() {
override fun latestUpdatesSelector() = "div.ls5"
override fun latestUpdatesFromElement(element: Element) = popularMangaFromElement(element)
override fun latestUpdatesFromElement(element: Element): SManga = SManga.create().apply {
element.select("a").let { a ->
setUrlWithoutDomain(a.attr("href"))
title = a.attr("title")
thumbnail_url = a.select("img").imageFromElement()
}
}
override fun latestUpdatesNextPageSelector(): String? = null