Skip to content
Snippets Groups Projects
Commit 0a3888e6 authored by Till Glöggler's avatar Till Glöggler Committed by Elmar Ludwig
Browse files

Fix scheduling (#1299)

parent 371028a7
No related branches found
No related tags found
No related merge requests found
...@@ -79,10 +79,10 @@ class IngestClient extends RestClient ...@@ -79,10 +79,10 @@ class IngestClient extends RestClient
$query['capture.device.names'] = $capabilities; $query['capture.device.names'] = $capabilities;
} }
$options = $this->ocRestClient->getQueryParams($query); $options = $this->ocRestClient->getFormParams($query);
$response = $this->ocRestClient->performGet($uri, $options); $response = $this->ocRestClient->performPost($uri, $options);
return $response['code'] == 200; return (in_array($response['code'], [200, 201]) !== false);
} else { } else {
$response = $this->opencastApi->ingest->schedule($mediaPackage, $workflowDefinitionId); $response = $this->opencastApi->ingest->schedule($mediaPackage, $workflowDefinitionId);
return (in_array($response['code'], [200, 201]) !== false); return (in_array($response['code'], [200, 201]) !== false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment