Send better data to Kavita+ related to AltNames and Year.

Fixed a localization issue which prevented issue count showing on Series Match Result.
This commit is contained in:
Joseph Milazzo 2025-05-11 10:04:52 -05:00
parent 66f78aa859
commit 519cf60fc8
4 changed files with 32 additions and 7 deletions

View file

@ -1159,6 +1159,12 @@ public static partial class Parser
return !string.IsNullOrEmpty(name) && SeriesAndYearRegex.IsMatch(name);
}
/// <summary>
/// Parse a Year from a Comic Series: Series Name (YEAR)
/// </summary>
/// <example>Harley Quinn (2024) returns 2024</example>
/// <param name="name"></param>
/// <returns></returns>
public static string ParseYear(string? name)
{
if (string.IsNullOrEmpty(name)) return string.Empty;