2022-02-03 20:38:29 +00:00
|
|
|
{extends file='page.tpl'}
|
|
|
|
{block name='main'}
|
2022-02-03 19:55:09 +00:00
|
|
|
<div itemscope itemtype="https://schema.org/VideoObject">
|
2022-02-03 20:38:29 +00:00
|
|
|
{include file="inc/logo.tpl"}
|
|
|
|
{include file='snippets/title.tpl' assign=title}
|
|
|
|
<p id="download_intro">
|
|
|
|
{t params=['@title' => $title]}You are going to download @title.{/t}
|
|
|
|
</p>
|
|
|
|
{if isset($video->thumbnail)}
|
2022-02-06 18:17:05 +00:00
|
|
|
{html_image file=$video->thumbnail itemprop="thumbnailUrl" class="thumb"}
|
2022-02-03 20:38:29 +00:00
|
|
|
{/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}"/>
|
|
|
|
{/if}
|
|
|
|
<br/>
|
|
|
|
<form action="{path_for name="download"}">
|
|
|
|
<input type="hidden" name="url" value="{$video->webpage_url}"/>
|
|
|
|
{if $config->uglyUrls}
|
|
|
|
<input type="hidden" name="page" value="download"/>
|
2020-05-13 22:18:39 +00:00
|
|
|
{/if}
|
2022-02-03 20:38:29 +00:00
|
|
|
{if isset($video->formats) && count($video->formats) > 1}
|
|
|
|
<h3><label for="format">{t}Available formats:{/t}</label></h3>
|
2022-02-06 19:26:36 +00:00
|
|
|
{*
|
|
|
|
To make the default generic formats translatable:
|
|
|
|
{t}Best{/t}
|
|
|
|
{t}Remux best video with best audio{/t}
|
|
|
|
{t}Worst{/t}
|
|
|
|
*}
|
|
|
|
{html_options name='format' options=$formats selected=$defaultFormat id="format" class="formats monospace"}
|
2022-02-03 20:38:29 +00:00
|
|
|
<br/>
|
|
|
|
<br/>
|
2024-07-22 09:25:18 +00:00
|
|
|
<input type="checkbox" checked name="remux" id="remux" value="1"/>
|
|
|
|
<label for="remux">{t}Remux with best audio{/t}</label>
|
|
|
|
<br/>
|
|
|
|
<br/>
|
2022-02-03 20:38:29 +00:00
|
|
|
{/if}
|
|
|
|
{if $config->stream}
|
|
|
|
<input type="checkbox" {if $config->stream !== 'ask'}checked{/if} name="stream" id="stream"/>
|
|
|
|
<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>
|
2022-02-06 19:26:36 +00:00
|
|
|
{html_options name='customFormat' values=$config->convertAdvancedFormats output=$config->convertAdvancedFormats
|
|
|
|
title="{t}Custom format{/t}" name="customFormat" aria-label="{t}Format to convert to{/t}"}
|
2022-02-03 20:38:29 +00:00
|
|
|
{t}with{/t}
|
|
|
|
<label for="customBitrate" class="sr-only">{t}Bit rate{/t}</label>
|
|
|
|
<input type="number" value="{$config->audioBitrate}" title="{t}Custom bitrate{/t}"
|
|
|
|
class="customBitrate"
|
|
|
|
name="customBitrate" id="customBitrate" aria-describedby="customBitrateUnit"/>
|
|
|
|
<span id="customBitrateUnit">{t}kbit/s audio{/t}</span>
|
|
|
|
<br/>
|
|
|
|
<br/>
|
|
|
|
{/if}
|
|
|
|
<input class="downloadBtn" type="submit" value="{t}Download{/t}"/><br/>
|
|
|
|
</form>
|
2020-05-13 22:18:39 +00:00
|
|
|
</div>
|
2022-02-03 20:38:29 +00:00
|
|
|
{/block}
|