diff --git a/Shokofin/API/ShokoAPIManager.cs b/Shokofin/API/ShokoAPIManager.cs index 2d5fc86d..16be63c3 100644 --- a/Shokofin/API/ShokoAPIManager.cs +++ b/Shokofin/API/ShokoAPIManager.cs @@ -20,7 +20,8 @@ namespace Shokofin.API; public class ShokoAPIManager : IDisposable { - private static readonly Regex YearRegex = new(@"\s+\((?\d{4})\)\s*$", RegexOptions.Compiled); + // Note: This regex will only get uglier with time. + private static readonly Regex YearRegex = new(@"\s+\((?\d{4})(?:dai [2-9] bu)?\)\s*$", RegexOptions.Compiled | RegexOptions.IgnoreCase); private readonly ILogger Logger;