Mangakawaii - tweak chapter_number (#3041)
This commit is contained in:
parent
549af8b808
commit
c6855db5d2
|
@ -5,7 +5,7 @@ ext {
|
||||||
appName = 'Tachiyomi: Mangakawaii'
|
appName = 'Tachiyomi: Mangakawaii'
|
||||||
pkgNameSuffix = 'fr.mangakawaii'
|
pkgNameSuffix = 'fr.mangakawaii'
|
||||||
extClass = '.MangaKawaii'
|
extClass = '.MangaKawaii'
|
||||||
extVersionCode = 8
|
extVersionCode = 9
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -69,7 +69,7 @@ class MangaKawaii : ParsedHttpSource() {
|
||||||
val chapter = SChapter.create()
|
val chapter = SChapter.create()
|
||||||
chapter.url = element.select("a.list-item__title").attr("href")
|
chapter.url = element.select("a.list-item__title").attr("href")
|
||||||
chapter.name = element.select("a.list-item__title").text().trim()
|
chapter.name = element.select("a.list-item__title").text().trim()
|
||||||
chapter.chapter_number = element.select("a.list-item__title").text().substringAfter("Chapitre").replace(",", ".").trim().toFloat()
|
chapter.chapter_number = element.select("a.list-item__title").text().substringAfter("Chapitre").replace(Regex("""[,-]"""), ".").trim().toFloatOrNull() ?: 0F
|
||||||
chapter.date_upload = parseDate(element.select("div.chapter-item__date").text())
|
chapter.date_upload = parseDate(element.select("div.chapter-item__date").text())
|
||||||
return chapter
|
return chapter
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue