The Free Software Media System - Server Backend & API
Use string.Contains in LiveTv
Patrick Barronf1a5bc955b6a
diff --git a/Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs b/Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.csindex 6b0520ad0f..5be3a7488a 100644--- a/Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs+++ b/Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs@@ -287,7 +287,7 @@ namespace Emby.Server.Implementations.LiveTv.ListingsIsMovie = IsMovie(details),Etag = programInfo.Md5,IsLive = string.Equals(programInfo.LiveTapeDelay, "live", StringComparison.OrdinalIgnoreCase),- IsPremiere = programInfo.Premiere || (programInfo.IsPremiereOrFinale ?? string.Empty).IndexOf("premiere", StringComparison.OrdinalIgnoreCase) != -1+ IsPremiere = programInfo.Premiere || (programInfo.IsPremiereOrFinale ?? string.Empty).Contains("premiere", StringComparison.OrdinalIgnoreCase)};var showId = programId;@@ -414,7 +414,7 @@ namespace Emby.Server.Implementations.LiveTv.Listingsreturn null;}- if (uri.IndexOf("http", StringComparison.OrdinalIgnoreCase) != -1)+ if (uri.Contains("http", StringComparison.OrdinalIgnoreCase)){return uri;}diff --git a/Emby.Server.Implementations/LiveTv/TunerHosts/HdHomerun/DiscoverResponse.cs b/Emby.Server.Implementations/LiveTv/TunerHosts/HdHomerun/DiscoverResponse.csindex 42068cd340..39b3571422 100644--- a/Emby.Server.Implementations/LiveTv/TunerHosts/HdHomerun/DiscoverResponse.cs+++ b/Emby.Server.Implementations/LiveTv/TunerHosts/HdHomerun/DiscoverResponse.cs@@ -30,7 +30,7 @@ namespace Emby.Server.Implementations.LiveTv.TunerHosts.HdHomerun{var model = ModelNumber ?? string.Empty;- if (model.IndexOf("hdtc", StringComparison.OrdinalIgnoreCase) != -1)+ if (model.Contains("hdtc", StringComparison.OrdinalIgnoreCase)){return true;}