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">
|
2018-01-16 12:07:10 +00:00
|
|
|
<main class="main">
|
2016-07-31 23:01:10 +00:00
|
|
|
{include file="inc/logo.tpl"}
|
2019-11-29 20:33:49 +00:00
|
|
|
{$title="<i itemprop='name'>
|
|
|
|
<a itemprop='url' id='video_link'
|
|
|
|
href='{$video->webpage_url}'>
|
2019-11-29 21:28:48 +00:00
|
|
|
{$video->title}</a></i>"}
|
2019-11-29 20:33:49 +00:00
|
|
|
<p id="download_intro">
|
|
|
|
{t params=['@title' => $title]}You are going to download @title.{/t}
|
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/>
|
2019-04-22 13:20:05 +00:00
|
|
|
<form action="{path_for name="download"}">
|
2017-05-04 21:02:59 +00:00
|
|
|
<input type="hidden" name="url" value="{$video->webpage_url}" />
|
2019-11-07 22:42:48 +00:00
|
|
|
{if $config->uglyUrls}
|
|
|
|
<input type="hidden" name="page" value="download" />
|
|
|
|
{/if}
|
2019-10-01 20:14:49 +00:00
|
|
|
{if isset($video->formats) && count($video->formats) > 1}
|
|
|
|
<h3><label for="format">{t}Available formats:{/t}</label></h3>
|
2016-05-01 16:58:03 +00:00
|
|
|
<select name="format" id="format" class="formats monospace">
|
2017-05-26 10:58:48 +00:00
|
|
|
<optgroup label="{t}Generic formats{/t}">
|
2019-05-08 17:46:37 +00:00
|
|
|
{foreach $config->genericFormats as $format => $name}
|
|
|
|
<option value="{$format}">{t}{$name}{/t}</option>
|
|
|
|
{/foreach}
|
2016-04-10 23:21:01 +00:00
|
|
|
</optgroup>
|
2017-05-26 10:58:48 +00:00
|
|
|
<optgroup label="{t}Detailed formats{/t}" 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/>
|
2019-11-07 22:42:48 +00:00
|
|
|
{/if}
|
|
|
|
{if $config->stream}
|
2020-01-18 21:56:55 +00:00
|
|
|
<input type="checkbox" {if $config->stream != 'ask'}checked{/if} name="stream" id="stream"/>
|
2019-11-07 22:42:48 +00:00
|
|
|
<label for="stream">{t}Stream the video through the server{/t}</label>
|
|
|
|
<br/><br/>
|
|
|
|
{/if}
|
|
|
|
{if $config->convertAdvanced}
|
|
|
|
<input type="checkbox" name="customConvert" id="customConvert"/>
|
|
|
|
<label for="customConvert">{t}Convert into a custom format:{/t}</label>
|
2019-11-29 20:33:49 +00:00
|
|
|
<select title="{t}Custom format{/t}" name="customFormat" aria-label="{t}Format to convert to{/t}">
|
2019-11-07 22:42:48 +00:00
|
|
|
{foreach $config->convertAdvancedFormats as $format}
|
|
|
|
<option>{$format}</option>
|
|
|
|
{/foreach}
|
|
|
|
</select>
|
|
|
|
{t}with{/t}
|
|
|
|
<label for="customBitrate" class="sr-only">{t}Bit rate{/t}</label>
|
2019-11-29 20:33:49 +00:00
|
|
|
<input type="number" value="{$config->audioBitrate}" title="{t}Custom bitrate{/t}" class="customBitrate"
|
2019-11-07 22:42:48 +00:00
|
|
|
name="customBitrate" id="customBitrate" aria-describedby="customBitrateUnit" />
|
|
|
|
<span id="customBitrateUnit">{t}kbit/s audio{/t}</span>
|
|
|
|
<br/><br/>
|
2019-10-01 20:14:49 +00:00
|
|
|
{/if}
|
2017-05-29 17:01:20 +00:00
|
|
|
<input class="downloadBtn" type="submit" value="{t}Download{/t}" /><br/>
|
2019-10-01 20:14:49 +00:00
|
|
|
</form>
|
2018-01-16 12:07:10 +00:00
|
|
|
</main>
|
2015-04-11 20:08:24 +00:00
|
|
|
</div>
|
2016-07-31 23:01:10 +00:00
|
|
|
{include file="inc/footer.tpl"}
|