From 47479f7a0d141d6f6a027241194e3a1f4d6954e8 Mon Sep 17 00:00:00 2001 From: Glax Date: Sat, 2 Nov 2024 17:44:23 +0100 Subject: [PATCH] Fix chaptermarkers. Don't create one if Chapter does not have an ID --- Tranga/Chapter.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tranga/Chapter.cs b/Tranga/Chapter.cs index 928591a..d2fc000 100644 --- a/Tranga/Chapter.cs +++ b/Tranga/Chapter.cs @@ -121,6 +121,8 @@ public readonly struct Chapter : IComparable public void CreateChapterMarker() { + if (this.id is null) + return; string path = Path.Join(TrangaSettings.downloadLocation, parentManga.folderName, $".{id}"); File.WriteAllText(path, GetArchiveFilePath()); File.SetAttributes(path, FileAttributes.Hidden);