[YuriGarden] Revert scanlator for getDetails
This commit is contained in:
6
.gitignore
vendored
6
.gitignore
vendored
@@ -84,3 +84,9 @@ src/test/resources/cookies.txt
|
|||||||
local.properties
|
local.properties
|
||||||
.kotlin/
|
.kotlin/
|
||||||
!/.idea/kotlin-statistics.xml
|
!/.idea/kotlin-statistics.xml
|
||||||
|
|
||||||
|
.idea/**/discord.xml
|
||||||
|
.idea/**/migrations.xml
|
||||||
|
.idea/**/runConfigurations.xml
|
||||||
|
.idea/**/AndroidProjectSystem.xml
|
||||||
|
.idea/caches/deviceStreaming.xml
|
||||||
|
|||||||
@@ -147,6 +147,8 @@ internal abstract class YuriGardenParser(
|
|||||||
jo.getString("name")
|
jo.getString("name")
|
||||||
}.orEmpty()
|
}.orEmpty()
|
||||||
|
|
||||||
|
val team = json.optJSONArray("teams")?.getJSONObject(0)?.getString("name")
|
||||||
|
|
||||||
val chaptersDeferred = async {
|
val chaptersDeferred = async {
|
||||||
webClient.httpGet("https://$apiSuffix/chapters/comic/${id}").parseJsonArray()
|
webClient.httpGet("https://$apiSuffix/chapters/comic/${id}").parseJsonArray()
|
||||||
}
|
}
|
||||||
@@ -161,7 +163,7 @@ internal abstract class YuriGardenParser(
|
|||||||
number = jo.getFloatOrDefault("order", 0f),
|
number = jo.getFloatOrDefault("order", 0f),
|
||||||
volume = 0,
|
volume = 0,
|
||||||
url = "$chapId",
|
url = "$chapId",
|
||||||
scanlator = null,
|
scanlator = team,
|
||||||
uploadDate = jo.getLong("lastUpdated"),
|
uploadDate = jo.getLong("lastUpdated"),
|
||||||
branch = null,
|
branch = null,
|
||||||
source = source,
|
source = source,
|
||||||
|
|||||||
Reference in New Issue
Block a user