[mythtv-users] Original air date

John P Poet jppoet at gmail.com
Fri Feb 28 01:00:25 UTC 2020


On Thu, Feb 27, 2020 at 5:24 PM Jay Foster <jayf0ster at roadrunner.com> wrote:

> On 2/27/2020 4:03 PM, John P Poet wrote:
>
> Hi Gary,
>
> 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.
>
> When I look at the SchedulesDirect.DB the information is there. For
> example:
>
> 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');
>
> However, I don't see originalairdate anywhere in the XML file:
>
>  <programme channel="I31235.json.schedulesdirect.org"
> start="20200302040000 +0000" stop="20200302050000 +0000">
>   <title>The Rookie</title>
>   <sub-title>Now and Then</sub-title>
>   <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>
>   <credits>
>    <director>Chi-Yoon Chung</director>
>    <actor role="John Nolan">Nathan Fillion</actor>
>    <actor role="Nyla Harper">Mekia Cox</actor>
>    <actor role="Angela Lopez">Alyssa Diaz</actor>
>    <actor role="Sergeant Wade Grey">Richard T. Jones</actor>
>    <actor role="Jackson West">Titus Makin</actor>
>    <actor role="Lucy Chen">Melissa O'Neil</actor>
>    <actor role="Tim Bradford">Eric Winter</actor>
>    <actor role="Captain Zoe Andersen">Mercedes Mason</actor>
>    <actor role="Talia Bishop">Afton Williamson</actor>
>    <writer>Robert Bella</writer>
>    <producer>Alexi Hawley</producer>
>    <producer>Mark Gordon</producer>
>    <producer>Nathan Fillion</producer>
>    <producer>Michelle Chapman</producer>
>    <producer>Jon Steinberg</producer>
>    <producer>Bill Norcross</producer>
>    <producer>Terence Paul Winter</producer>
>    <producer>Rob Bowman</producer>
>    <guest>Zayne Emory</guest>
>    <guest>Madeleine Coghlan</guest>
>    <guest>Daniel Lissing</guest>
>    <guest>Jeffrey D. Sams</guest>
>   </credits>
>   <category>series</category>
>   <category>Crime drama</category>
>   <category>Series</category>
>   <category>Episode</category>
>   <category>Show</category>
>   <keyword>2010s</keyword>
>   <keyword>Adventure</keyword>
>   <keyword>Amusing</keyword>
>   <keyword>Bank</keyword>
>   <keyword>Bank heist</keyword>
>   <keyword>Bar</keyword>
>   <keyword>Career change</keyword>
>   <keyword>Criminal</keyword>
>   <keyword>Discovery</keyword>
>   <keyword>Emotional</keyword>
>   <keyword>House</keyword>
>   <keyword>Lifestyle changes</keyword>
>   <keyword>Officer</keyword>
>   <keyword>Partner</keyword>
>   <keyword>Police captain</keyword>
>   <keyword>Police station</keyword>
>   <keyword>Police work</keyword>
>   <keyword>Pursuit</keyword>
>   <keyword>Quest</keyword>
>   <keyword>Relationships</keyword>
>   <keyword>Rise</keyword>
>   <keyword>Road</keyword>
>   <keyword>Rookie</keyword>
>   <keyword>Spirited</keyword>
>   <keyword>Starting over</keyword>
>   <keyword>Suspenseful</keyword>
>   <keyword>Thrilling</keyword>
>   <episode-num system="dd_progid">EP02970543.0033</episode-num>
>   <episode-num system="xmltv_ns"> 1 / 2 . 11 .  </episode-num>
>   <video>
>    <quality>HDTV</quality>
>   </video>
>   <audio>
>    <stereo>dolby digital</stereo>
>   </audio>
>   <subtitles type="teletext" />
>   <rating system="CHVRS">
>    <value>14+</value>
>   </rating>
>   <rating system="ClassInd">
>    <value>14</value>
>   </rating>
>   <rating system="Régie du cinéma">
>    <value>13+</value>
>   </rating>
>   <rating system="VCHIP">
>    <value>TV-14</value>
>   </rating>
>  </programme>
>
> 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?
>
> Thanks,
>
> John
>
>
>
> _______________________________________________
> mythtv-users mailing listmythtv-users at mythtv.orghttp://lists.mythtv.org/mailman/listinfo/mythtv-usershttp://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
>
> 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.
> Jay
>

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.

Gary, I looked at the tv_grab_zz_sdjson_sqlite code, and see:
        # If the schedule has marked this as a new showing, do not add in
        # any previously-shown indication.  Don't use supplemental data for
        # originalAirDate since generic data is not relevant for this
showing.
        # Date transformation occurs because XMLTV uses their standardized
        # dates, while Schedules Direct uses YYYY-MM-DD
        my $newShowing = 0;
        $newShowing = $scheduleDetails->{'new'} if
(defined($scheduleDetails->{'new'}));
        if (!$newShowing)
          {
            if (defined($programDetails->{'originalAirDate'}))
              {
                my $originalAirDate = $programDetails->{'originalAirDate'};
                my $offset = ' +0000';
                $offset = '' if
(exists($GRABBER_FIXUPS->{'NO_PREVIOUSLY_SHOWN_ZONE_OFFSET'}));
                my $start = substr($originalAirDate, 0, 4) .
substr($originalAirDate, 5, 2) . substr($originalAirDate, 8, 2) . $offset;
                $w->emptyTag('previously-shown', start => $start);
              }
            else
              {
                $w->emptyTag('previously-shown');
              }
          }

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?

Thanks,

John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20200227/ed8dbb3c/attachment.htm>


More information about the mythtv-users mailing list