From 0a5ded2036c4c0566a23a7d6e3a3af2428f5f43c Mon Sep 17 00:00:00 2001 From: glax Date: Wed, 1 Nov 2023 14:15:55 +0100 Subject: [PATCH] Add field WebsiteUrl to Manga --- Tranga/Manga.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Tranga/Manga.cs b/Tranga/Manga.cs index 00b5f8e..e72eef6 100644 --- a/Tranga/Manga.cs +++ b/Tranga/Manga.cs @@ -43,11 +43,12 @@ public struct Manga public float ignoreChaptersBelow { get; set; } public float latestChapterDownloaded { get; set; } public float latestChapterAvailable { get; set; } + public string? websiteUrl { get; } private static readonly Regex LegalCharacters = new (@"[A-Z]*[a-z]*[0-9]* *\.*-*,*'*\'*\)*\(*~*!*"); [JsonConstructor] - public Manga(string sortName, List authors, string? description, Dictionary altTitles, string[] tags, string? coverUrl, string? coverFileNameInCache, Dictionary? links, int? year, string? originalLanguage, string status, string publicationId, ReleaseStatusByte releaseStatus = 0, string? folderName = null, float? ignoreChaptersBelow = 0) + public Manga(string sortName, List authors, string? description, Dictionary altTitles, string[] tags, string? coverUrl, string? coverFileNameInCache, Dictionary? links, int? year, string? originalLanguage, string status, string publicationId, ReleaseStatusByte releaseStatus = 0, string? websiteUrl = null, string? folderName = null, float? ignoreChaptersBelow = 0) { this.sortName = sortName; this.authors = authors; @@ -70,6 +71,7 @@ public struct Manga this.latestChapterDownloaded = 0; this.latestChapterAvailable = 0; this.releaseStatus = releaseStatus; + this.websiteUrl = websiteUrl; } public override string ToString()