Skip to content

Commit

Permalink
fix: start uglifying the year regex for season merging
Browse files Browse the repository at this point in the history
- If you know which show this is for, then good for you. Otherwise you don't need to pay it any mind.
  • Loading branch information
revam committed Oct 7, 2024
1 parent 4baee92 commit 3369217
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Shokofin/API/ShokoAPIManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ namespace Shokofin.API;

public class ShokoAPIManager : IDisposable
{
private static readonly Regex YearRegex = new(@"\s+\((?<year>\d{4})\)\s*$", RegexOptions.Compiled);
// Note: This regex will only get uglier with time.
private static readonly Regex YearRegex = new(@"\s+\((?<year>\d{4})(?:dai [2-9] bu)?\)\s*$", RegexOptions.Compiled | RegexOptions.IgnoreCase);

private readonly ILogger<ShokoAPIManager> Logger;

Expand Down

0 comments on commit 3369217

Please sign in to comment.