Open jccroft1 opened 8 years ago
Could add the option to send it into a slack channel or something so more than the person who created the item are aware of it.
I think it would make sense in the api and then as a webhook event. And then a bot like Clifford could announce it
Actually probably not a webhook event just a filter. So you can query the api and get a list of all items without vod. Then from that you can determine when you want to fire alerts etc
Actually this is already possible from the api.
/v1/mediaItems?vodIncludeSetting=HAS_VOD&sortMode=SCHEDULED_PUBLISH_TIME&sortDirection=DESC&limit=20
will return everything that is of type VOD with the most recent published/to be published first. You can check in those responses if there is vod uploaded.
Might be nice to add another vodIncludeSetting
of HAS_UNAVAILABLE_VOD
or something similar, and also a startTime
option to look before/after.
refs: https://github.com/LA1TV/LA1TV-SlackBot/pull/9
Note HAS_VOD doesn't work because that only shows items that have VOD linked with them. VOD can only be linked with a media item once a video has been uploaded.
If a media item is going to publish in the next hour but is missing a VOD or Livestream then email a warning to the creator of the item.