From 2ec2ee951d991489b75301500cc8ce83e2712d94 Mon Sep 17 00:00:00 2001 From: CodeConscious <50596087+codeconscious@users.noreply.github.com> Date: Thu, 7 Nov 2024 08:58:26 +0900 Subject: [PATCH] Rename metadata title field --- .../PostProcessing/YouTubeMetadataExtensionMethods.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/CCVTAC.Console/PostProcessing/YouTubeMetadataExtensionMethods.cs b/src/CCVTAC.Console/PostProcessing/YouTubeMetadataExtensionMethods.cs index f33c4b4..223163e 100644 --- a/src/CCVTAC.Console/PostProcessing/YouTubeMetadataExtensionMethods.cs +++ b/src/CCVTAC.Console/PostProcessing/YouTubeMetadataExtensionMethods.cs @@ -53,20 +53,20 @@ public static string GenerateComment(this VideoMetadata videoData, CollectionMet { sb.AppendLine($"■ Album: {videoData.Album}"); } - if (videoData.Title.HasText()) + if (videoData.Title.HasText() && videoData.Title != videoData.Fulltitle) { - sb.AppendLine($"■ Title: {videoData.Title}"); + sb.AppendLine($"■ Track Title: {videoData.Title}"); } sb.AppendLine($"■ Uploaded: {videoData.FormattedUploadDate()}"); var description = string.IsNullOrWhiteSpace(videoData.Description) ? "None." : videoData.Description; sb.AppendLine($"■ Video description: {description}"); - if (maybeCollectionData is CollectionMetadata collectionData) + if (maybeCollectionData is { } collectionData) { sb.AppendLine(); sb.AppendLine($"■ Playlist name: {collectionData.Title}"); sb.AppendLine($"■ Playlist URL: {collectionData.WebpageUrl}"); - if (videoData.PlaylistIndex is uint index) + if (videoData.PlaylistIndex is { } index) { sb.AppendLine($"■ Playlist index: {index}"); }