Some work around the Auto Updater and other small changes #1460 #865

This commit is contained in:
Jamie.Rees 2017-07-27 08:13:43 +01:00
commit 863df6e1cc
26 changed files with 303 additions and 23 deletions

View 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; }
}
}

View file

@ -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);
}
}

View file

@ -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;
}