From bf206769946861d464f014903940d3007ee19177 Mon Sep 17 00:00:00 2001 From: glax Date: Fri, 19 May 2023 19:32:47 +0200 Subject: [PATCH] Removed field Publication from Chapter (Since Chapter is always Part of Publication) --- Tranga/Chapter.cs | 5 +---- Tranga/Connectors/MangaDex.cs | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Tranga/Chapter.cs b/Tranga/Chapter.cs index f49e113..af6afea 100644 --- a/Tranga/Chapter.cs +++ b/Tranga/Chapter.cs @@ -4,17 +4,14 @@ namespace Tranga; public struct Chapter { - public Publication publication { get; } public string? name { get; } public string? volumeNumber { get; } public string? chapterNumber { get; } public string url { get; } - public string fileName { get; } - public Chapter(Publication publication, string? name, string? volumeNumber, string? chapterNumber, string url) + public Chapter(string? name, string? volumeNumber, string? chapterNumber, string url) { - this.publication = publication; this.name = name; this.volumeNumber = volumeNumber; this.chapterNumber = chapterNumber; diff --git a/Tranga/Connectors/MangaDex.cs b/Tranga/Connectors/MangaDex.cs index 2dfb538..a248385 100644 --- a/Tranga/Connectors/MangaDex.cs +++ b/Tranga/Connectors/MangaDex.cs @@ -156,7 +156,7 @@ public class MangaDex : Connector ? attributes["chapter"]!.GetValue() : null; - chapters.Add(new Chapter(publication, title, volume, chapterNum, chapterId)); + chapters.Add(new Chapter(title, volume, chapterNum, chapterId)); } }