Incorrect Channel; SD/Upstream won't correct

An evolving, supported alternative to Rovi
Forum rules
★ Download the latest EPG123 here: http://epg123.garyan2.net <> Setup guide here: http://epg123.garyan2.net/downloads/epg123_Guide.pdf
NOYB

Posts: 111
Joined: Thu Sep 10, 2020 8:03 am
Location:

HTPC Specs: Show details

Re: Incorrect Channel; SD/Upstream won't correct

#21

Post by NOYB » 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
+}
+
+

Post Reply