This commit is contained in:
Finnley Somdahl 2023-12-01 01:22:15 -06:00
parent 1df528c0dc
commit afa960c808
171 changed files with 3458 additions and 1915 deletions

View file

@ -9,7 +9,7 @@ abstract class NovelParser : BaseParser() {
abstract suspend fun loadBook(link: String, extra: Map<String, String>?): Book
fun List<ShowResponse>.sortByVolume(query:String) : List<ShowResponse> {
fun List<ShowResponse>.sortByVolume(query: String): List<ShowResponse> {
val sorted = groupBy { res ->
val match = volumeRegex.find(res.name)?.groupValues
?.firstOrNull { it.isNotEmpty() }
@ -42,7 +42,12 @@ data class Book(
val description: String? = null,
val links: List<FileUrl>
) {
constructor (name: String, img: String, description: String? = null, links: List<String>) : this(
constructor (
name: String,
img: String,
description: String? = null,
links: List<String>
) : this(
name,
FileUrl(img),
description,