Skip to content

Commit

Permalink
Rename metadata title field
Browse files Browse the repository at this point in the history
  • Loading branch information
codeconscious committed Nov 6, 2024
1 parent 61e1346 commit 2ec2ee9
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}");
}
Expand Down

0 comments on commit 2ec2ee9

Please sign in to comment.