SlimeRead: Fix deep linking (#3153)

Fix deep linking
This commit is contained in:
Chopper 2024-05-20 08:04:59 -03:00 committed by Draff
parent ceb953ff96
commit 6d3f09e1df
3 changed files with 3 additions and 1 deletions

View File

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

View File

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

View File

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