From 34cd7b517c43e425224e45ffc507ed252f245860 Mon Sep 17 00:00:00 2001 From: Sergiy Egoshyn Date: Sun, 11 Aug 2024 18:21:50 +0300 Subject: [PATCH] add source url to comment tag --- Program.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Program.cs b/Program.cs index 5494a7c..2cfef28 100644 --- a/Program.cs +++ b/Program.cs @@ -151,6 +151,12 @@ static async Task Main(string[] args) { else if (f.Tag.AlbumArtists[0] != author) f.Tag.AlbumArtists = new[] { author }.Union(f.Tag.AlbumArtists).ToArray(); + var comment = $"saved by bookGrabber from {url}"; + if (string.IsNullOrWhiteSpace(f.Tag.Comment)) + f.Tag.Comment = comment; + else + f.Tag.Comment += "\n" + comment; + if (bookImage != null && bookImage.Type != PictureType.NotAPicture) f.Tag.Pictures = new IPicture[1] { bookImage };