Removed field Publication from Chapter (Since Chapter is always Part of Publication)

This commit is contained in:
glax 2023-05-19 19:32:47 +02:00
parent 553a77320d
commit bf20676994
2 changed files with 2 additions and 5 deletions

View File

@ -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;

View File

@ -156,7 +156,7 @@ public class MangaDex : Connector
? attributes["chapter"]!.GetValue<string>()
: null;
chapters.Add(new Chapter(publication, title, volume, chapterNum, chapterId));
chapters.Add(new Chapter(title, volume, chapterNum, chapterId));
}
}