From 95434f857ebc2060723e553d439f6bfa4e780f97 Mon Sep 17 00:00:00 2001 From: Johannes Burk Date: Thu, 7 Jul 2022 11:31:08 +0200 Subject: [PATCH] Request signed URLs when querying for publications Add sign=true parameter to event publications API request. --- lib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib.php b/lib.php index a895af7..50d9913 100644 --- a/lib.php +++ b/lib.php @@ -248,7 +248,8 @@ private function add_video_published_data($ocinstanceid, $video) { $api = new api($ocinstanceid); - $query = '/api/events/' . $video->identifier . '/publications/'; + // Use sign=true parameter to get signed URLs when Opencasts URL signing is turned on. sign=true does not harm when turned off. + $query = '/api/events/' . $video->identifier . '/publications?sign=true'; $result = $api->oc_get($query); $publications = json_decode($result);