Smal fixes with playlists

This commit is contained in:
Pierre Rudloff 2017-04-25 11:05:49 +02:00
parent 554dd14edd
commit 7428b334de
4 changed files with 40 additions and 6 deletions

View file

@ -227,14 +227,21 @@ class FrontController
} else {
$template = 'video.tpl';
}
if (isset($video->title)) {
$title = $video->title;
$description = 'Download "'.$video->title.'" from '.$video->extractor_key;
} else {
$title = 'Video download';
$description = 'Download video from '.$video->extractor_key;
}
$this->view->render(
$response,
$template,
[
'video' => $video,
'class' => 'video',
'title' => $video->title,
'description' => 'Download "'.$video->title.'" from '.$video->extractor_key,
'title' => $title,
'description' => $description,
'protocol' => $protocol,
'config' => $this->config,
'canonical' => $this->getCanonicalUrl($request),