fix: Fix single format download
This commit is contained in:
parent
3445179d4c
commit
563916267d
1 changed files with 4 additions and 6 deletions
|
@ -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"}
|
||||
|
|
Loading…
Reference in a new issue