SlimeRead: Fix deep linking (#3153)

Fix deep linking
This commit is contained in:
Chopper 2024-05-20 08:04:59 -03:00 committed by GitHub
parent eda2ddb47a
commit 92bd4c8dab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 1 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'SlimeRead'
extClass = '.SlimeRead'
extVersionCode = 8
extVersionCode = 9
isNsfw = true
}

View File

@ -141,6 +141,7 @@ class SlimeRead : HttpSource() {
title = info.name
description = info.description
genre = info.categories.joinToString()
url = "/book/${info.id}"
status = when (info.status) {
1 -> SManga.ONGOING
2 -> SManga.COMPLETED

View File

@ -28,6 +28,7 @@ fun List<PopularMangaDto>.toSMangaList(): List<SManga> = map { item ->
@Serializable
data class MangaInfoDto(
@SerialName("book_id") val id: Int,
@SerialName("book_image") val thumbnail_url: String?,
@SerialName("book_name_original") val name: String,
@SerialName("book_status") val status: Int,