Skip to content

Commit

Permalink
add source url to comment tag
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiye committed Aug 11, 2024
1 parent fbe1e5a commit 34cd7b5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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 };

Expand Down

0 comments on commit 34cd7b5

Please sign in to comment.