[mythtv-users] Original Air Date missing in Schedules Direct

Robert Kulagowski rkulagow at gmail.com
Tue Jul 9 20:05:19 UTC 2013


On Tue, Jul 9, 2013 at 11:11 AM, Robert Kulagowski <rkulagow at gmail.com> wrote:
> On Tue, Jul 9, 2013 at 10:58 AM, Joseph Fry <joe at thefrys.com> wrote:
>> Also I have often wondered why mythfilldatabase needs to do so much work to
>> update a schedule when there are few changes.  I was curious if SD maintains
>> a "last updated date/time" field within the data it stores.  It would be
>> cool if mythfilldatabase could request only updates since the last run eg
>> "mythfilldatabase --updates-since <date-time-of-last-run>.  I'm not sure if
>> this would increase or decrease the load on the SD servers (though it would
>> certainly save bandwidth).
>
> That's all in the new JSON format - use of modified dates and md5's
> makes it possible to cache things that haven't changed and only get
> new things. I'm still writing the grabber, so nothing ready quite yet.

Here's what some of the debug output looks like: (since we now send a
modified date for the headend, a grabber can determine if there are
changes. No more "Re-add all" required on the Schedules Direct
website)

Checking for updated lineups from Schedules Direct.
Retrieving lineup from Schedules Direct.
PC:60030:Antenna local modified date:1970-01-01T00:00:00Z
server modified date:2013-06-19T15:14:08Z
Use new lineup?
>n
IL57303:X local modified date:2013-06-11T18:18:43Z
server modified date:2013-06-11T18:18:43Z
Sending schedule request.
There are 39500 programIDs in the upcoming schedule.
Retrieving existing MD5 values.
Need to download 11317 new programs.
Need to download 317 updated programs.
Requesting more than 10000 programs. Please be patient.
Requesting new and updated programs.
Starting program cache insert.
Performing inserts.
11317 / 11317
Performing updates.
Completed local database program updates.
Inserting schedules.

If a program gets updated at the server side, like a new guest star,
or a generic becomes a specific, then the md5 changes, and the grabber
downloads it as an update because the md5 for the "EP1234567890123" is
now different.

More information at http://forums.schedulesdirect.org/viewforum.php?f=8


More information about the mythtv-users mailing list