Re: Incorrect Channel; SD/Upstream won't correct
Posted: Sat Mar 20, 2021 1:50 am
Script update diff for program id value.
Code: Select all
--- Daystar-ES_Schedule_Reflections.org.ps1 2021-03-19 18:30:23.000000000 -0700
+++ Daystar-ES_Schedule_Reflections.ps1 2021-03-19 18:14:38.000000000 -0700
@@ -13 +13 @@
-$ProgramID = 'c_00001'
+$ProgramID = '' # Value has to be incremented from the highest program id.
+$ProgramID = 'c_00001' # To pass MXF verification, value has to be an integer incremented from the highest program id. This is done in code below.
@@ -33 +33 @@
-$series= $SeriesInfoID
+$series = $SeriesInfoID
@@ -61,0 +61,15 @@
+# Get the last (highest) program id and increment by 1.
+$found = $epg123_mxf -match '(?ms).*<Program id="(.*?)" .*?/>
+ .*?
+ </Program>
+ </Programs>'
+
+if ($found) {
+# "found"
+ $ProgramID = [int]$matches[1] + 1
+} else {
+# "not found"
+ exit
+}
+
+