fixed wrong id-location when getting chapters
This commit is contained in:
parent
9eb53bb53a
commit
40242ee7ca
@ -134,7 +134,7 @@ public class MangaDex : Connector
|
|||||||
foreach (JsonObject chapter in chaptersInResult)
|
foreach (JsonObject chapter in chaptersInResult)
|
||||||
{
|
{
|
||||||
JsonObject attributes = chapter!["attributes"]!.AsObject();
|
JsonObject attributes = chapter!["attributes"]!.AsObject();
|
||||||
string chapterId = attributes["id"]!.GetValue<string>();
|
string chapterId = chapter["id"]!.GetValue<string>();
|
||||||
|
|
||||||
string? title = attributes.ContainsKey("title") && attributes["title"] is not null
|
string? title = attributes.ContainsKey("title") && attributes["title"] is not null
|
||||||
? attributes["title"]!.GetValue<string>()
|
? attributes["title"]!.GetValue<string>()
|
||||||
|
Loading…
Reference in New Issue
Block a user