[Ru]Remanga. Fix chapter number (#5541)
Co-authored-by: pavkazzz <me@pavkazzz.ru>
This commit is contained in:
parent
b24fa5b9b6
commit
e1bffd90ab
|
@ -5,7 +5,7 @@ ext {
|
|||
extName = 'Remanga'
|
||||
pkgNameSuffix = 'ru.remanga'
|
||||
extClass = '.Remanga'
|
||||
extVersionCode = 15
|
||||
extVersionCode = 16
|
||||
libVersion = '1.2'
|
||||
}
|
||||
|
||||
|
|
|
@ -305,7 +305,7 @@ class Remanga : ConfigurableSource, HttpSource() {
|
|||
val chapters = gson.fromJson<PageWrapperDto<BookDto>>(response.body()?.charStream()!!)
|
||||
return chapters.content.filter { !it.is_paid or it.is_bought }.map { chapter ->
|
||||
SChapter.create().apply {
|
||||
chapter_number = 1F
|
||||
chapter_number = chapter.chapter.split(".").take(2).joinToString(".").toFloat()
|
||||
name = chapterName(chapter)
|
||||
url = "/api/titles/chapters/${chapter.id}"
|
||||
date_upload = parseDate(chapter.upload_date)
|
||||
|
|
Loading…
Reference in New Issue