[YuriGarden] Revert scanlator for getDetails

This commit is contained in:
dragonx943
2025-07-10 14:23:03 +07:00
parent 1d2ee20d17
commit 73c0a4f606
2 changed files with 9 additions and 1 deletions

6
.gitignore vendored
View File

@@ -84,3 +84,9 @@ src/test/resources/cookies.txt
local.properties
.kotlin/
!/.idea/kotlin-statistics.xml
.idea/**/discord.xml
.idea/**/migrations.xml
.idea/**/runConfigurations.xml
.idea/**/AndroidProjectSystem.xml
.idea/caches/deviceStreaming.xml

View File

@@ -147,6 +147,8 @@ internal abstract class YuriGardenParser(
jo.getString("name")
}.orEmpty()
val team = json.optJSONArray("teams")?.getJSONObject(0)?.getString("name")
val chaptersDeferred = async {
webClient.httpGet("https://$apiSuffix/chapters/comic/${id}").parseJsonArray()
}
@@ -161,7 +163,7 @@ internal abstract class YuriGardenParser(
number = jo.getFloatOrDefault("order", 0f),
volume = 0,
url = "$chapId",
scanlator = null,
scanlator = team,
uploadDate = jo.getLong("lastUpdated"),
branch = null,
source = source,