Re: Off-by-one in mythtv original airdate when fed with tv_grab_sd_json

Robert Eden <[email protected]> Sun, 22 May 2016 10:57:04 -0500
Newsgroups gmane.comp.tv.xmltv.general
Message-ID <[email protected]>
On 5/22/2016 10:41 AM, Ian Campbell wrote:
> Since switching to SD I've noticed that first showings seem to have
> their original airdate set to the day before.
...
> -               $previously_shown{'start'} = $dt->strftime('%Y%m%d%H%M%S %z');
> +               $previously_shown{'start'} = $dt->strftime('%Y%m%d');
>          }

> Could also just drop previously-shown from the XML, no information is
> better than wrong information IMHO (and my previous grabbers didn't
> have it anyway). Especially since xmltv and mythtv don't agree on the
> semantics of this field anyway (xmltv has it as the most recent
> previous showing, not the original airdate).
>

Lots of apps use previously_shown I know I use it to help decide if an 
episode is new. ("new" is only the first showing, I may want to record a 
later transmission of the show)

As it seems Gracenote doesn't output a time on previously shown (which 
also makes sense), The grabber should not decide to add one (or a 
timezone).  I've applied your patch.  That's the way I did it in 
tv_grab_na_sd too.

(Kevin, lots of folks are starting to use your grabber... will you be 
able to take over support?)

Robert


------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j