FAQ | This is a LIVE service | Changelog

Skip to content

Use API to synchronise with JWPlatform

Created by: rjw57

IMPORTANT: This PR requires the 1.2.2 release of jwplayer's client. Track progress of this at https://github.com/jwplayer/jwplatform-py/pull/24.

Instead of using MRSS feeds to attempt JWPlatform synchronisation, move to using the API directly.

This PR generalises applyupdatejob and genupdatejob to perform full synchronisation of videos:

  1. applyupdatejob has been taught how to create and delete resources in addition to updating them.
  2. genupdatejob looks through the current SMS database and generates create jobs for missing videos.
  3. Add a new command, tidy, which determines which videos need to be deleted. See the documentation for details.

With the addition of create jobs, we no longer need to generate feeds.

The tidy command has been split from genupdatejob because tidy is the only command which generates delete jobs and I'd like to keep a separation between "safe" (update only) and "risky" (can delete) commands.

NOTE: Thumbnails are not added in this PR. It's a little subtle to work out if a particular video has a custom thumbnail or not with the JWPlatform API. At first look it appears that there is no way to tell. We may be able to use some sort of custom prop hack to track this ourselves but I'm going to punt that to a different story.

Closes #12 (closed). Closes #13 (closed).

Merge request reports