Skip to content

Commit

Permalink
fix: Fix single format download
Browse files Browse the repository at this point in the history
  • Loading branch information
Rudloff committed Oct 1, 2019
1 parent 3445179 commit 5639162
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions templates/info.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
<br/>
<form action="{path_for name="download"}">
<input type="hidden" name="url" value="{$video->webpage_url}" />
{if isset($video->formats)}
<h3><label for="format">{t}Available formats:{/t}</label></h3>
{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" />
{/if}
Expand Down Expand Up @@ -89,11 +89,9 @@
<span id="customBitrateUnit">{t}kbit/s audio{/t}</span>
<br/><br/>
{/if}
<input class="downloadBtn" type="submit" value="{t}Download{/t}" /><br/>
</form>
{else}
{/if}
<input class="downloadBtn" type="submit" value="{t}Download{/t}" /><br/>
{/if}
</form>
</main>
</div>
{include file="inc/footer.tpl"}

0 comments on commit 5639162

Please sign in to comment.