Normalizes tag and genre names and migrates existing values

This commit is contained in:
BinaryAlley committed 2026-10-23 21:54:18 +03:00
1 parent 8a5cb9116e
commit eaca69bf2a
19 files changed
+4089 -58

No files matched your search

@@ -14,17 +14,17 @@ namespace Lumina.Domain.Common.ValueObjects.Metadata;
public class Genre : ValueObject
{
/// <summary>
/// Gets the name of the genre element of the media item.
/// Gets the name of the genre element of the media item, in lowercase and culture-invariant form.
/// </summary>
public string Name { get; }
/// <summary>
/// Initializes a new instance of the <see cref="Genre"/> class.
/// </summary>
/// <param name="name">The value representing this object.</param>
/// <param name="name">The value representing this object, which is trimmed and lowercased with the invariant culture.</param>
private Genre(string name)
{
Name = name.Trim();
Name = name.Trim().ToLowerInvariant();
}
/// <summary>
@@ -15,17 +15,17 @@ namespace Lumina.Domain.Common.ValueObjects.Metadata;
public class Tag : ValueObject
{
/// <summary>
/// Gets the name of the tag element of the media item.
/// Gets the name of the tag element of the media item, in lowercase and culture-invariant form.
/// </summary>
public string Name { get; }
/// <summary>
/// Initializes a new instance of the <see cref="Tag"/> class.
/// </summary>
/// <param name="name">The value representing this object.</param>
/// <param name="name">The value representing this object, which is trimmed and lowercased with the invariant culture.</param>
private Tag(string name)
{
Name = name.Trim();
Name = name.Trim().ToLowerInvariant();
}
/// <summary>