mirror of
https://github.com/C9Glax/tranga.git
synced 2025-01-12 11:27:32 +01:00
series.json is an abomination
This commit is contained in:
parent
26ef59ab42
commit
dc97774587
@ -54,6 +54,15 @@ public struct Publication
|
|||||||
//Only for series.json
|
//Only for series.json
|
||||||
private struct Metadata
|
private struct Metadata
|
||||||
{
|
{
|
||||||
|
[JsonRequired] public string type { get; }
|
||||||
|
[JsonRequired] public string publisher { get; }
|
||||||
|
// ReSharper disable twice IdentifierTypo
|
||||||
|
[JsonRequired] public int comicid { get; }
|
||||||
|
[JsonRequired] public string booktype { get; }
|
||||||
|
// ReSharper disable InconsistentNaming
|
||||||
|
[JsonRequired] public string ComicImage { get; }
|
||||||
|
[JsonRequired] public int total_issues { get; }
|
||||||
|
[JsonRequired] public string publication_run { get; }
|
||||||
[JsonRequired]public string name { get; }
|
[JsonRequired]public string name { get; }
|
||||||
[JsonRequired]public string year { get; }
|
[JsonRequired]public string year { get; }
|
||||||
[JsonRequired]public string status { get; }
|
[JsonRequired]public string status { get; }
|
||||||
@ -64,8 +73,22 @@ public struct Publication
|
|||||||
{
|
{
|
||||||
this.name = name;
|
this.name = name;
|
||||||
this.year = year;
|
this.year = year;
|
||||||
this.status = status;
|
if(status == "ongoing" || status == "hiatus")
|
||||||
|
this.status = "Continuing";
|
||||||
|
else if (status == "completed" || status == "cancelled")
|
||||||
|
this.status = "Ended";
|
||||||
|
else
|
||||||
|
this.status = status;
|
||||||
this.description_text = description_text;
|
this.description_text = description_text;
|
||||||
|
|
||||||
|
//kill it with fire
|
||||||
|
type = "Manga";
|
||||||
|
publisher = "";
|
||||||
|
comicid = 0;
|
||||||
|
booktype = "";
|
||||||
|
ComicImage = "";
|
||||||
|
total_issues = 0;
|
||||||
|
publication_run = "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user