- '%s/data/course/%s' % (self._API_BASE, course_id),
- course_id, 'Downloading course JSON')
+ '%s/player/functions/rpc' % self._API_BASE, course_id,
+ 'Downloading course JSON',
+ data=json.dumps({
+ 'fn': 'bootstrapPlayer',
+ 'payload': {
+ 'courseId': course_id,
+ }
+ }).encode('utf-8'),
+ headers={
+ 'Content-Type': 'application/json;charset=utf-8'
+ })['payload']['course']