From d319c97e1f580029fc54b1ad3673e18e0b36cac0 Mon Sep 17 00:00:00 2001
From: Rich Wareham <rjw57@cam.ac.uk>
Date: Wed, 28 Nov 2018 11:57:45 +0000
Subject: [PATCH] configure inputs explicitly

Empirically, setting "default" as the imputs field no longer sets all
the default inputs. Explicitly configure them in the API call.
---
 opencastcsvschedule/__init__.py | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/opencastcsvschedule/__init__.py b/opencastcsvschedule/__init__.py
index 0002a20..e647432 100644
--- a/opencastcsvschedule/__init__.py
+++ b/opencastcsvschedule/__init__.py
@@ -158,10 +158,12 @@ def oc_metadata(row):
 
 def oc_sched(row):
     """Create opencast schedule for an event"""
-    sched = {"agent_id": row["location"],
-             "start": row["startTime"],
-             "end": row["stopTime"],
-             "inputs": ["default"]}
+    sched = {
+        "agent_id": row["location"],
+        "start": row["startTime"],
+        "end": row["stopTime"],
+        "inputs": ["camera", "screen", "AudioSource"],
+    }
     return sched
 
 
-- 
GitLab