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