From dbbbafbe942e2b13dd49339d129ac24c572b3a5d Mon Sep 17 00:00:00 2001 From: Weibing Zhan Date: Mon, 4 Dec 2023 14:10:02 -0800 Subject: [PATCH] Report the OutputHlsUrl and OutputDashUrl in report page only when the input asset contains .ism file Description The OutputHlsUrl and OutputDashUrl are reported as empty in the report file for below scenarios: (1) The migration status is Failed. (2) The migration status is skipped. (3) The input assetType is non_ism. --- migrationTool/transform/AnalyzeTransform.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/migrationTool/transform/AnalyzeTransform.cs b/migrationTool/transform/AnalyzeTransform.cs index 21e193c..42e6180 100644 --- a/migrationTool/transform/AnalyzeTransform.cs +++ b/migrationTool/transform/AnalyzeTransform.cs @@ -19,8 +19,8 @@ public AnalysisResult(string assetName, MigrationStatus status, Uri? outputPath public string AssetName { get; set; } - public Uri? OutputHlsUrl => OutputPath != null ? new Uri(OutputPath!, (ManifestName + ".m3u8")) : null; + public Uri? OutputHlsUrl => OutputPath != null && ManifestName != null ? new Uri(OutputPath!, (ManifestName + ".m3u8")) : null; - public Uri? OutputDashUrl => OutputPath != null ? new Uri(OutputPath!, (ManifestName + ".mpd")) : null; + public Uri? OutputDashUrl => OutputPath != null && ManifestName != null ? new Uri(OutputPath!, (ManifestName + ".mpd")) : null; } }