disableShareAndPlaylist)) { ?>
$theLink) {
//$notAllowedKeys = array('m3u8');
$notAllowedKeys = [];
if (empty($advancedCustom->showImageDownloadOption)) {
$notAllowedKeys = array_merge($notAllowedKeys, ['jpg', 'gif', 'webp', 'pjpg']);
}
$keyFound = false;
foreach ($notAllowedKeys as $notAllowedKey) {
if (preg_match("/{$notAllowedKey}/", $key)) {
$keyFound = true;
break;
}
}
if ($keyFound) {
continue;
}
if (!$cdnStorageEnabled || !preg_match('/cdn\.ypt\.me(.*)\.m3u8/i', $theLink['url'])) {
$theLink['url'] = addQueryStringParameter($theLink['url'], "download", 1);
$theLink['url'] = addQueryStringParameter($theLink['url'], "title", getSEOTitle($video['title']) . "_{$key}_." . ($video['type'] === 'audio' ? 'mp3' : 'mp4'));
if (!$cdnStorageEnabled && $key == 'm3u8') {
$name = 'MP4';
} else {
$parts = explode("_", $key);
$name = $key;
if (count($parts) > 1) {
$name = strtoupper($parts[0]);
if (is_numeric($parts[1])) {
$name .= "
{$parts[1]}p
" . getResolutionLabel($parts[1]);
} else {
$name .= "
" . strtoupper($parts[1]) . "
";
}
}
}
$filesToDownload[] = ['name' => $name, 'url' => $theLink['url']];
}
}
if($canDownloadFiles){
$filesToDownload = array_merge($filesToDownload, getMP3ANDMP4DownloadLinksFromHLS($videos_id, $video['type']));
}
if (!empty($filesToDownload)) {
?>
';
}
} else {
echo '';
}
?>
removeThumbsUpAndDown)) {
?>
" id="dislikeBtn" data-toggle="tooltip" title="" >
" id="likeBtn" data-toggle="tooltip" title="" >