public static bool IsPartialTitleMatchWithDescription(redux_items redux, pips_programmes pips) { if (redux == null || pips == null) { return(false); } string reduxtitle = GetCompleteTitle(redux); if (PartialMatch.IsPartialMatch(reduxtitle, pips.display_title)) { return(true); } if (PartialMatch.IsPartialMatch(reduxtitle, pips.display_subtitle)) { return(true); } string reduxdesc = redux.short_description; if (reduxdesc.Contains("] Followed by ")) { reduxdesc = reduxdesc.Substring(0, reduxdesc.IndexOf("] Followed by ")); } if (reduxdesc.Contains("] Then ")) { reduxdesc = reduxdesc.Substring(0, reduxdesc.IndexOf("] Then ")); } return(PartialMatch.IsPartialMatch(redux.programme_name + " " + reduxdesc, pips.display_title + " " + pips.display_subtitle + " " + pips.description)); }
public static bool IsPartialTitleMatch(redux_items redux, pips_programmes pips) { if (redux == null || pips == null) { return(false); } string reduxtitle = GetCompleteTitle(redux); if (PartialMatch.IsPartialMatch(reduxtitle, pips.display_title)) { return(true); } return(false); }