garybuhrmaster / tv_grab_zz_sdjson_sqlite

XMLTV grabber for Schedules Direct JSON service
GNU General Public License v2.0
6 stars 8 forks source link

daily run failed with "Not an ARRAY reference" error #7

Closed bennettpeter closed 7 years ago

bennettpeter commented 7 years ago

This morning my daily run failed with the error Not an ARRAY reference at /opt/mythtv/bin/tv_grab_zz_sdjson_sqlite line 1393. I updated to the latest from github and the error still happens with a different line number Not an ARRAY reference at /opt/mythtv/bin/tv_grab_zz_sdjson_sqlite line 1693.

garybuhrmaster commented 7 years ago

The problem is malformed upstream data (it does not match their defined data definition). I will report an example to SchedulesDirect for their resolution.

I will also think about the implication of adding code to validate that each and every upstream element is properly formed, but AFAIK SchedulesDirect has never provided a full schema for their data (and I really do not want to be trying to guess what they are doing).

garybuhrmaster commented 7 years ago

It turns out that Schedules Direct made a change yesterday, and it now creates invalid videoProperties.

Sorry.

garybuhrmaster commented 7 years ago

Schedules Direct has reported that their upstream changed things in such a way that the Schedules Direct ingest was broken which cascaded down. Schedules Direct has updated their codes, and is regenerating their schedules.

And while it is of no consolation, it impacted a number of independent tools that were using the Schedule Direct JSON feeds.

garybuhrmaster commented 7 years ago

Source data fixed upstream (it might take a bit longer to roll out for some people).

I am going to close this issue as an upstream issue. Thanks for the notification.

bennettpeter commented 7 years ago

Thank you for sorting this out so quickly :)