mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
parent
5c72d585f4
commit
863df6e1cc
26 changed files with 303 additions and 23 deletions
10
src/Ombi.Helpers/ApplicationSettings.cs
Normal file
10
src/Ombi.Helpers/ApplicationSettings.cs
Normal file
|
@ -0,0 +1,10 @@
|
|||
namespace Ombi.Helpers
|
||||
{
|
||||
public class ApplicationSettings
|
||||
{
|
||||
public string Branch { get; set; }
|
||||
public string Version { get; set; }
|
||||
public string OmbiService { get; set; }
|
||||
public string FriendlyVersion { get; set; }
|
||||
}
|
||||
}
|
|
@ -18,5 +18,8 @@ namespace Ombi.Helpers
|
|||
public static EventId TvSender => new EventId(5000);
|
||||
public static EventId SonarrSender => new EventId(5001);
|
||||
|
||||
|
||||
public static EventId Updater => new EventId(6000);
|
||||
|
||||
}
|
||||
}
|
|
@ -9,6 +9,10 @@ namespace Ombi.Helpers
|
|||
{
|
||||
public static bool Contains(this string paragraph, string word, CompareOptions opts)
|
||||
{
|
||||
if (string.IsNullOrEmpty(paragraph))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return CultureInfo.CurrentUICulture.CompareInfo.IndexOf(paragraph, word, CompareOptions.IgnoreCase) >= 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue