Skip to content

Commit

Permalink
Add cleanup after date
Browse files Browse the repository at this point in the history
  • Loading branch information
DirtyRacer1337 committed Apr 5, 2021
1 parent a6753c2 commit 587ace2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Jellyfin.Plugin.PhoenixAdult/Helpers/Helper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ public static (string searchTitle, DateTime? searchDateObj) GetDateFromTitle(str
searchDate = searchDateObj.ToString("yyyy-MM-dd", CultureInfo.InvariantCulture);
searchTitle = Regex.Replace(searchTitle, regExRule.Key, string.Empty).Trim();

searchTitle = string.Join(" ", searchTitle.Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries));

searchData = (searchTitle, searchDateObj);
break;
}
Expand Down

0 comments on commit 587ace2

Please sign in to comment.