Closed dare2try closed 7 months ago
Here is response from the API, which I forgot to include originally
{
"result": "ok",
"response": "collection",
"data": [
{
"id": "ddb5fb82-affb-49b2-93c3-6d2906340d9a",
"type": "chapter",
"attributes": {
"volume": null,
"chapter": null,
"title": null,
"translatedLanguage": "en",
"externalUrl": null,
"publishAt": "2024-03-05T19:29:47+00:00",
"readableAt": "2024-03-05T19:29:47+00:00",
"createdAt": "2024-03-05T19:29:46+00:00",
"updatedAt": "2024-03-05T19:37:12+00:00",
"pages": 20,
"version": 4
},
"relationships": [
{
"id": "d82f5749-25eb-4e2e-a71c-221a376b77fc",
"type": "manga"
},
{
"id": "249659bc-b517-42be-9192-ddee8197e1f4",
"type": "user"
}
]
}
],
"limit": 96,
"offset": 0,
"total": 1
}
I think this was fixed with 21a7392493e1e13f488bfa6544ac9673d2e002dc Rated Manga had an issue with 0 chapters returning. So should be fixed.
Confirmed that this seems to be fixed now
What is broken?
When attempting to add "a gyaru childhold friend like it here" using the Mangadex connector, the cover is rendered correctly but
0
chapters are found.The resulting API call looks like this:
From the following lines of code, it appears that it explicitly avoids adding in the chapter, if the
chapter
attribute isnull
. Since your handling the chapter as a string and not as an Int, maybe it would be better to assign a default ofN/A
or if you want to go the JavaScript routeNaN
(though I personally preferN/A
), or maybe even0
if that doesn't conflict with something else.I was going to PR this change myself but I need to get setup to work in .NET again, so it might take a while and I wanted to let you know since this seems like a pretty minor fix.
Log-output
Additional stuff
No response