Page 2 of 2

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

Posted: Sat Mar 20, 2021 1:50 am
by NOYB
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
+}
+
+

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

Posted: Sat Jul 10, 2021 7:23 pm
by NOYB
Script update diff for extra lines in last guide image and/or program id entry.

Code: Select all

--- Daystar-ES_Schedule_Reflections.org.ps1	2021-03-20 23:43:16.000000000 -0700
+++ Daystar-ES_Schedule_Reflections.ps1	2021-06-22 17:52:57.000000000 -0700
@@ -65 +65,2 @@
-	$found = $epg123_mxf -match '(?ms).*<GuideImage id="i(.*?)" .*?/>
+	$found = $epg123_mxf -match '(?ms).*<GuideImage id="i(.*?)" .*?(/>|>
+      .*?)
@@ -101 +102 @@
-	$found = $epg123_mxf -match '(?ms).*<Program id="(.*?)" .*?/>
+	$found = $epg123_mxf -match '(?ms).*<Program id="(.*?)" .*?(/>|>
@@ -103 +104 @@
-      </Program>
+      </Program>)

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

Posted: Sat Jul 10, 2021 7:28 pm
by garyan2
Extra lines?

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

Posted: Sat Jul 10, 2021 7:43 pm
by NOYB
garyan2 wrote: Sat Jul 10, 2021 7:28 pmExtra lines?
Was being lazy with terse explanation. Additional info lines.
Since going after the last entry, have to account for those.

Sometimes like this...

Code: Select all

      <GuideImage id="i56" imageUrl="https://schedulesdirect-api20141201.s3.us-east-1.amazonaws.com/assets/p36719_v_v5_ab.jpg" />
Sometimes like this...

Code: Select all

      <GuideImage id="i55" imageUrl="file://C:\ProgramData\GaRyan2\epg123\logos\KUNPLD4_d.png">
        <image>iVBORw0KGgoA...AASUVORK5CYII=</image>
      </GuideImage>

Sometimes like this...

Code: Select all

      <Program id="10767" uid="!Program!SH01642286_0000" title="Heartland Backstage" originalAirdate="2012-11-11" keywords="k6,k6014" series="si1718" isSeries="true" isGeneric="true" guideImage="" />
Sometimes like this...

Code: Select all

      <Program id="10766" uid="!Program!SH02585086_0000" title="Today's Wild West" description="The Western lifestyle and its adventures, as well as the history of the American West." shortDescription="" language="en" originalAirdate="2017-01-07" keywords="k6,k6047" series="si1717" isDocumentary="true" isSeries="true" isGeneric="true" guideImage="">
        <HostRole person="p20015" rank="1" />
      </Program>

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

Posted: Sat Jul 10, 2021 7:50 pm
by garyan2
Ah, yes.

The first GuideImage above is for series/season/program images; the second is for station logos that I embed the string encoded image in the file.
The first Program is without Cast&Crew; the second is with.

I was wondering if something changed that EPG123 was throwing in extra lines.