From 0a3888e68468537c76db6fd53607326a9102b80c Mon Sep 17 00:00:00 2001 From: Till <till@gundk.it> Date: Wed, 2 Apr 2025 19:04:09 +0200 Subject: [PATCH] Fix scheduling (#1299) --- lib/Models/REST/IngestClient.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Models/REST/IngestClient.php b/lib/Models/REST/IngestClient.php index c501fb76..09a3c202 100644 --- a/lib/Models/REST/IngestClient.php +++ b/lib/Models/REST/IngestClient.php @@ -79,10 +79,10 @@ class IngestClient extends RestClient $query['capture.device.names'] = $capabilities; } - $options = $this->ocRestClient->getQueryParams($query); - $response = $this->ocRestClient->performGet($uri, $options); + $options = $this->ocRestClient->getFormParams($query); + $response = $this->ocRestClient->performPost($uri, $options); - return $response['code'] == 200; + return (in_array($response['code'], [200, 201]) !== false); } else { $response = $this->opencastApi->ingest->schedule($mediaPackage, $workflowDefinitionId); return (in_array($response['code'], [200, 201]) !== false); -- GitLab