trms / wp-cablecast

A Wordpress plugin for Cablecast
GNU General Public License v3.0
2 stars 6 forks source link

Update sync.php #32

Open sethgraham opened 2 years ago

sethgraham commented 2 years ago

From BevCam.org schedule issue, this change hides PSAs and other short clips used to fill gaps by using the include_cg_exempt parameter. Otherwise, the schedule lookup maxes out at 500 items and prevents the plugin from updating the program schedule. The limit on three months in the future was arbitrary, but necessary to prevent still maxing out at 500.

bryanharley commented 2 years ago

Check this out: https://github.com/trms/wp-cablecast/commit/b1337513a9ef94a1508472d404d6eb55ca64b565

Ray improved the schedule syncing so if there's more than 500 items, it does a second call.

raytiley commented 1 year ago

I really need to figure out why I don't get notications on this repo :(

I had no idea this was hanging out here. @sethgraham I apologize. I'll review this in the next few days.