<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 27, 2020 at 5:24 PM Jay Foster <<a href="mailto:jayf0ster@roadrunner.com">jayf0ster@roadrunner.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div>On 2/27/2020 4:03 PM, John P Poet
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>Hi Gary,</div>
<div><br>
</div>
<div>For the last year (it seems) original air date has been
missing for any new, OTA show for all of my local stations. I
would like to figure out why.</div>
<div><br>
</div>
<div>When I look at the SchedulesDirect.DB the information is
there. For example:</div>
<div><br>
</div>
<div>INSERT INTO programs
VALUES('EP029705430033','xfT6+k9jEHFM7kDyMVUKLQ','{"md5":"xfT6+k9jEHFM7kDyMVUKLQ","resourceID":"15523389","episodeTitle150":"Now
and
Then","hasSeriesArtwork":true,"programID":"EP029705430033","showType":"Series","hasImageArtwork":true,"cast":[{"billingOrder":"01","name":"Nathan
Fillion","nameId":"67551","personId":"67551","role":"Actor","characterName":"John
Nolan"},{"billingOrder":"02","nameId":"496084","name":"Mekia
Cox","personId":"485976","characterName":"Nyla
Harper","role":"Actor"},{"role":"Actor","characterName":"Angela
Lopez","personId":"304076","name":"Alyssa
Diaz","nameId":"308075","billingOrder":"03"},{"name":"Richard
T.
Jones","nameId":"191738","billingOrder":"04","role":"Actor","characterName":"Sergeant
Wade Grey","personId":"189985"},{"name":"Titus
Makin","nameId":"1243712","billingOrder":"05","role":"Actor","characterName":"Jackson
West","personId":"630730"},{"name":"Melissa
O''Neil","nameId":"783199","billingOrder":"06","characterName":"Lucy
Chen","role":"Actor","personId":"748705"},{"role":"Actor","characterName":"Tim
Bradford","personId":"251380","name":"Eric
Winter","nameId":"254936","billingOrder":"07"},{"name":"Zayne
Emory","nameId":"578771","billingOrder":"08","role":"Guest
Star","characterName":"Henry
Nolan","personId":"554955"},{"role":"Guest
Star","characterName":"Abigail","personId":"952321","name":"Madeleine
Coghlan","nameId":"1014956","billingOrder":"09"},{"characterName":"Sterling
Freeman","role":"Guest
Star","personId":"667397","name":"Daniel
Lissing","nameId":"694274","billingOrder":"10"},{"personId":"30851","characterName":"Dr.
Solomon Lowell","role":"Guest
Star","billingOrder":"11","name":"Jeffrey D.
Sams","nameId":"30851"}],"titles":[{"title120":"The
Rookie"}],"originalAirDate":"2020-03-01","crew":[{"name":"Alexi
Hawley","nameId":"336118","role":"Executive
Producer","personId":"327689","billingOrder":"01"},{"personId":"228438","billingOrder":"02","nameId":"231468","name":"Mark
Gordon","role":"Executive
Producer"},{"nameId":"67551","name":"Nathan
Fillion","role":"Executive
Producer","personId":"67551","billingOrder":"03"},{"personId":"1158496","billingOrder":"04","name":"Michelle
Chapman","nameId":"1243713","role":"Executive
Producer"},{"personId":"1122318","billingOrder":"05","name":"Jon
Steinberg","nameId":"1205204","role":"Executive
Producer"},{"billingOrder":"06","personId":"1280246","role":"Executive
Producer","name":"Bill
Norcross","nameId":"1372975"},{"billingOrder":"07","personId":"303791","role":"Executive
Producer","nameId":"307790","name":"Terence Paul
Winter"},{"billingOrder":"08","personId":"54798","role":"Executive
Producer","name":"Rob
Bowman","nameId":"54798"},{"personId":"497889","billingOrder":"09","name":"Robert
Bella","nameId":"511933","role":"Writer"},{"nameId":"1421075","name":"Chi-Yoon
Chung","role":"Director","personId":"1325397","billingOrder":"10"}],"genres":["Crime
drama"],"metadata":[{"Gracenote":{"episode":12,"season":2}}],"entityType":"Episode","contentRating":[{"country":"CAN","code":"13+","body":"Régie
du cinéma"},{"body":"Departamento de Justiça, Classificação,
Títulos e
Qualificação","code":"14","country":"BRA"},{"country":"CAN","body":"Canadian
Parental
Rating","code":"14+"},{"country":"USA","contentAdvisory":["Language","Violence"],"code":"TV14","body":"USA
Parental
Rating"}],"descriptions":{"description1000":[{"description":"Nolan
takes his son''s fiancée, Abigail, on a ride-along after she
shows interest in becoming a police officer; Jackson''s
relationship becomes increasingly
complicated.","descriptionLanguage":"en"}],"description100":[{"description":"Nolan
takes his son''s fiancée on a ride-along after she shows
interest in becoming a police
officer.","descriptionLanguage":"en"}]}}','SH029705430000','2020-02-20
16:35:01');</div>
<div><br>
</div>
<div>However, I don't see originalairdate anywhere in the XML
file:</div>
<div><br>
</div>
<div> <programme channel="<a href="http://I31235.json.schedulesdirect.org" target="_blank">I31235.json.schedulesdirect.org</a>"
start="20200302040000 +0000" stop="20200302050000 +0000"><br>
<title>The Rookie</title><br>
<sub-title>Now and Then</sub-title><br>
<desc lang="en">Nolan takes his son's fiancée,
Abigail, on a ride-along after she shows interest in becoming
a police officer; Jackson's relationship becomes increasingly
complicated.</desc><br>
<credits><br>
<director>Chi-Yoon Chung</director><br>
<actor role="John Nolan">Nathan Fillion</actor><br>
<actor role="Nyla Harper">Mekia Cox</actor><br>
<actor role="Angela Lopez">Alyssa Diaz</actor><br>
<actor role="Sergeant Wade Grey">Richard T.
Jones</actor><br>
<actor role="Jackson West">Titus Makin</actor><br>
<actor role="Lucy Chen">Melissa O'Neil</actor><br>
<actor role="Tim Bradford">Eric Winter</actor><br>
<actor role="Captain Zoe Andersen">Mercedes
Mason</actor><br>
<actor role="Talia Bishop">Afton
Williamson</actor><br>
<writer>Robert Bella</writer><br>
<producer>Alexi Hawley</producer><br>
<producer>Mark Gordon</producer><br>
<producer>Nathan Fillion</producer><br>
<producer>Michelle Chapman</producer><br>
<producer>Jon Steinberg</producer><br>
<producer>Bill Norcross</producer><br>
<producer>Terence Paul Winter</producer><br>
<producer>Rob Bowman</producer><br>
<guest>Zayne Emory</guest><br>
<guest>Madeleine Coghlan</guest><br>
<guest>Daniel Lissing</guest><br>
<guest>Jeffrey D. Sams</guest><br>
</credits><br>
<category>series</category><br>
<category>Crime drama</category><br>
<category>Series</category><br>
<category>Episode</category><br>
<category>Show</category><br>
<keyword>2010s</keyword><br>
<keyword>Adventure</keyword><br>
<keyword>Amusing</keyword><br>
<keyword>Bank</keyword><br>
<keyword>Bank heist</keyword><br>
<keyword>Bar</keyword><br>
<keyword>Career change</keyword><br>
<keyword>Criminal</keyword><br>
<keyword>Discovery</keyword><br>
<keyword>Emotional</keyword><br>
<keyword>House</keyword><br>
<keyword>Lifestyle changes</keyword><br>
<keyword>Officer</keyword><br>
<keyword>Partner</keyword><br>
<keyword>Police captain</keyword><br>
<keyword>Police station</keyword><br>
<keyword>Police work</keyword><br>
<keyword>Pursuit</keyword><br>
<keyword>Quest</keyword><br>
<keyword>Relationships</keyword><br>
<keyword>Rise</keyword><br>
<keyword>Road</keyword><br>
<keyword>Rookie</keyword><br>
<keyword>Spirited</keyword><br>
<keyword>Starting over</keyword><br>
<keyword>Suspenseful</keyword><br>
<keyword>Thrilling</keyword><br>
<episode-num
system="dd_progid">EP02970543.0033</episode-num><br>
<episode-num system="xmltv_ns"> 1 / 2 . 11 .
</episode-num><br>
<video><br>
<quality>HDTV</quality><br>
</video><br>
<audio><br>
<stereo>dolby digital</stereo><br>
</audio><br>
<subtitles type="teletext" /><br>
<rating system="CHVRS"><br>
<value>14+</value><br>
</rating><br>
<rating system="ClassInd"><br>
<value>14</value><br>
</rating><br>
<rating system="Régie du cinéma"><br>
<value>13+</value><br>
</rating><br>
<rating system="VCHIP"><br>
<value>TV-14</value><br>
</rating><br>
</programme></div>
<div><br>
</div>
<div>Some entries in the XML file have <previously-shown
start="some value" /> but that does not exist for any of my
local channels when the show is new. Is that how it is
supposed to work?</div>
<div><br>
</div>
<div>Thanks,</div>
<div><br>
</div>
<div>John<br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
mythtv-users mailing list
<a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a>
<a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a>
MythTV Forums: <a href="https://forum.mythtv.org" target="_blank">https://forum.mythtv.org</a>
</pre>
</blockquote>
FWIW, I just checked my recordings from last night (USA, OTA). Each
of them show an original air date. I am using 0.28-fixes.<br>
Jay<br>
</div></blockquote><div><br></div><div>Thanks for checking Jay. If you are running a version that old, I am guessing you are using schedulesdirect instead of XMLTV? This worked "correclty" when I used the embedded schedulesdirect grabber. In the most recent version of MythTV, that is going away and the XMLTV grabber must be used.</div><div><br></div><div>Gary, I looked at the tv_grab_zz_sdjson_sqlite code, and see:</div><div> <span style="font-family:monospace"> # If the schedule has marked this as a new showing, do not add in<br> # any previously-shown indication. Don't use supplemental data for<br> # originalAirDate since generic data is not relevant for this showing.<br> # Date transformation occurs because XMLTV uses their standardized<br> # dates, while Schedules Direct uses YYYY-MM-DD<br> my $newShowing = 0;<br> $newShowing = $scheduleDetails->{'new'} if (defined($scheduleDetails->{'new'}));<br> if (!$newShowing)<br> {<br> if (defined($programDetails->{'originalAirDate'}))<br> {<br> my $originalAirDate = $programDetails->{'originalAirDate'};<br> my $offset = ' +0000';<br> $offset = '' if (exists($GRABBER_FIXUPS->{'NO_PREVIOUSLY_SHOWN_ZONE_OFFSET'}));<br> my $start = substr($originalAirDate, 0, 4) . substr($originalAirDate, 5, 2) . substr($originalAirDate, 8, 2) . $offset;<br> $w->emptyTag('previously-shown', start => $start);<br> }<br> else<br> {<br> $w->emptyTag('previously-shown');<br> }<br> }</span></div><div><br></div><div>If I remove the check for !$newShowing it fixes the problem. Now I am curious why you choose not to fill in that info for "new" programs. "new" programs which are not OTA get that info populated, just not the OTA programs, so maybe there is some subtle difference in the test?</div><div><br></div><div>Thanks,</div><div><br></div><div>John<br></div><div><br></div></div></div>