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