fix: Fix single format download

This commit is contained in:
Pierre Rudloff 2019-10-01 22:14:49 +02:00
parent 3445179d4c
commit 563916267d

View file

@ -20,7 +20,7 @@
<br/>
<form action="{path_for name="download"}">
<input type="hidden" name="url" value="{$video->webpage_url}" />
{if isset($video->formats)}
{if isset($video->formats) && count($video->formats) > 1}
<h3><label for="format">{t}Available formats:{/t}</label></h3>
{if $config->uglyUrls}
<input type="hidden" name="page" value="download" />
@ -89,11 +89,9 @@
<span id="customBitrateUnit">{t}kbit/s audio{/t}</span>
<br/><br/>
{/if}
{/if}
<input class="downloadBtn" type="submit" value="{t}Download{/t}" /><br/>
</form>
{else}
<input class="downloadBtn" type="submit" value="{t}Download{/t}" /><br/>
{/if}
</form>
</main>
</div>
{include file="inc/footer.tpl"}