/// <summary> /// Function to save the New adi file /// </summary> /// <param name="AdiFileName">Adi filename Typically ADI.xml</param> /// <returns></returns> private bool SaveAdiFile(string AdiFileName) { try { if (IsUpdate && !AdiMapping.IsTVOD) { AdiMapping.RemoveUpdateAssetSection(); } AdiMapping.SaveAdi(Path.Combine(WorkingDirectory, AdiFileName)); return(true); } catch (Exception SAF_EX) { log.Error($"Failed to Save ADI File - {SAF_EX.Message}"); if (log.IsDebugEnabled) { log.Debug($"STACK TRACE: {SAF_EX.StackTrace}"); } return(false); } }
private bool CheckTvodUpdate() { string adi = Path.Combine(WorkingDirectory, "ADI.xml"); if (AdiMapping.IsTVOD && IsUpdate) { if (ProcessTvodUpdate()) { log.Info("Successfully processed TVOD Update."); //var test = AdiMapping.des AdiMapping.SaveAdi(adi); AdiMapping.LoadXDocument(adi); return(true); } else { log.Error("Enountered an error during the processing of a tvod update, check logs."); return(false); } } return(true); }