Skip to content
Snippets Groups Projects
Commit 2156a20f authored by Michael Kessler's avatar Michael Kessler
Browse files

[TASK] Add response kind to response

parent e05053b7
No related branches found
No related tags found
No related merge requests found
......@@ -108,10 +108,13 @@ class VimeoService implements LoggerAwareInterface {
if (strpos($vimeoId, 'showcase') === 0) {
$showcaseId = preg_split('/\//', $vimeoId)[1];
$response['items'] = $this->addVideoIdsToResponse($this->getShowcaseVideos((int) $showcaseId));
$response['kind'] = 'showcase';
} else if (is_numeric($vimeoId)) {
$response['items'] = $this->addVideoIdsToResponse($this->getVideo((int) $vimeoId));
$response['kind'] = 'video';
} else {
$response['items'] = $this->addVideoIdsToResponse($this->getChannelVideos($vimeoId));
$response['kind'] = 'channel';
}
if (!$disableVimeoCache) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment