2016-07-31 23:01:10 +00:00
|
|
|
{include file="inc/head.tpl"}
|
2015-04-11 20:08:24 +00:00
|
|
|
<div class="wrapper">
|
|
|
|
<div itemscope itemtype="http://schema.org/VideoObject">
|
|
|
|
<div class="main">
|
2016-07-31 23:01:10 +00:00
|
|
|
{include file="inc/logo.tpl"}
|
2016-06-22 10:32:57 +00:00
|
|
|
<p id="download_intro">You are going to download<i itemprop="name">
|
2015-04-11 20:08:24 +00:00
|
|
|
<a itemprop="url" id="video_link"
|
|
|
|
data-ext="{$video->ext}"
|
|
|
|
data-video="{$video->url|escape}"
|
|
|
|
href="{$video->webpage_url}">
|
|
|
|
{$video->title}</a></i>.
|
2016-06-22 10:32:57 +00:00
|
|
|
</p>
|
2015-10-31 11:04:13 +00:00
|
|
|
{if isset($video->thumbnail)}
|
2016-05-01 18:14:58 +00:00
|
|
|
<img itemprop="thumbnailUrl" class="thumb" src="{$video->thumbnail}" alt="" />
|
|
|
|
{/if}
|
|
|
|
{if isset($video->description)}
|
|
|
|
<meta itemprop="description" content="{$video->description|escape}" />
|
|
|
|
{/if}
|
|
|
|
{if isset($video->upload_date)}
|
|
|
|
<meta itemprop="uploadDate" content="{$video->upload_date}" />
|
2015-10-31 11:04:13 +00:00
|
|
|
{/if}
|
2015-04-11 20:08:24 +00:00
|
|
|
<br/>
|
2015-04-12 14:29:05 +00:00
|
|
|
{if isset($video->formats)}
|
2016-04-10 19:42:38 +00:00
|
|
|
<h3><label for="format">Available formats:</label></h3>
|
|
|
|
<form action="{path_for name="redirect"}">
|
|
|
|
<input type="hidden" name="url" value="{$video->webpage_url}" />
|
2017-04-02 21:34:07 +00:00
|
|
|
{if $uglyUrls}
|
2017-01-10 22:37:29 +00:00
|
|
|
<input type="hidden" name="page" value="redirect" />
|
|
|
|
{/if}
|
2016-05-01 16:58:03 +00:00
|
|
|
<select name="format" id="format" class="formats monospace">
|
2016-04-10 23:21:01 +00:00
|
|
|
<optgroup label="Generic formats">
|
2017-01-16 10:29:56 +00:00
|
|
|
<option value="best{$protocol}">
|
2016-04-10 23:21:01 +00:00
|
|
|
{strip}
|
2016-10-20 21:01:31 +00:00
|
|
|
Best ({$video->ext})
|
2016-04-10 23:21:01 +00:00
|
|
|
{/strip}
|
|
|
|
</option>
|
2017-04-24 22:40:24 +00:00
|
|
|
{if $remux}
|
|
|
|
<option value="bestvideo+bestaudio">
|
|
|
|
Remux best video with best audio
|
|
|
|
</option>
|
|
|
|
{/if}
|
2017-01-16 10:29:56 +00:00
|
|
|
<option value="worst{$protocol}">
|
2016-04-10 23:21:01 +00:00
|
|
|
Worst
|
|
|
|
</option>
|
|
|
|
</optgroup>
|
|
|
|
<optgroup label="Detailed formats" class="monospace">
|
2016-04-10 19:42:38 +00:00
|
|
|
{foreach $video->formats as $format}
|
2017-01-16 10:29:56 +00:00
|
|
|
{if $config->stream || $format->protocol|in_array:array('http', 'https')}
|
2016-04-10 23:21:01 +00:00
|
|
|
{strip}
|
|
|
|
<option value="{$format->format_id}">
|
|
|
|
{$format->ext}
|
|
|
|
{for $foo=1 to (5 - ($format->ext|strlen))}
|
|
|
|
|
|
|
|
{/for}
|
|
|
|
{if isset($format->width)}
|
|
|
|
{$format->width}x{$format->height}
|
|
|
|
{for $foo=1 to (10 - (("{$format->width}x{$format->height}")|strlen))}
|
|
|
|
|
|
|
|
{/for}
|
|
|
|
{else}
|
|
|
|
{for $foo=1 to 10}
|
|
|
|
|
|
|
|
{/for}
|
|
|
|
{/if}
|
|
|
|
{if isset($format->filesize)}
|
|
|
|
{($format->filesize/1000000)|round:2} MB
|
|
|
|
{for $foo=1 to (7 - (($format->filesize/1000000)|round:2|strlen))}
|
|
|
|
|
|
|
|
{/for}
|
|
|
|
{else}
|
|
|
|
{for $foo=1 to 10}
|
|
|
|
|
|
|
|
{/for}
|
|
|
|
{/if}
|
|
|
|
{if isset($format->format_note)}
|
|
|
|
{$format->format_note}
|
|
|
|
{/if}
|
|
|
|
({$format->format_id})
|
|
|
|
</option>
|
|
|
|
{/strip}
|
2017-01-16 10:29:56 +00:00
|
|
|
{/if}
|
2016-04-10 19:42:38 +00:00
|
|
|
{/foreach}
|
|
|
|
</optgroup>
|
|
|
|
</select><br/><br/>
|
|
|
|
<input class="downloadBtn" type="submit" value="Download" /><br/>
|
|
|
|
</form>
|
2015-04-11 20:08:24 +00:00
|
|
|
{else}
|
2017-01-16 10:29:56 +00:00
|
|
|
<input type="hidden" name="format" value="best{$protocol}" />
|
2015-04-11 20:08:24 +00:00
|
|
|
<a class="downloadBtn"
|
|
|
|
href="{$video->url|escape}">Download</a><br/>
|
|
|
|
{/if}
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-07-31 23:01:10 +00:00
|
|
|
{include file="inc/footer.tpl"}
|