mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
Default Log view uses client operations, added all logs view that uses paging (No support for sorting or filtering).
This commit is contained in:
parent
179de93a6e
commit
c13c9d15c4
11 changed files with 146 additions and 15 deletions
23
NzbDrone.Core/Helpers/SortHelper.cs
Normal file
23
NzbDrone.Core/Helpers/SortHelper.cs
Normal file
|
@ -0,0 +1,23 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace NzbDrone.Core.Helpers
|
||||
{
|
||||
public class SortHelper
|
||||
{
|
||||
public static string SkipArticles(string input)
|
||||
{
|
||||
var articles = new List<string> { "The ", "An ", "A " };
|
||||
|
||||
foreach (string article in articles)
|
||||
{
|
||||
if (input.ToLower().StartsWith(article, StringComparison.InvariantCultureIgnoreCase))
|
||||
return input.Substring(article.Length).Trim();
|
||||
}
|
||||
|
||||
return input;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue