fix: Specify allowed protocols explicitely

"^=http" also catches http_dash_segments
This commit is contained in:
Pierre Rudloff 2019-03-24 15:13:01 +01:00
parent 2ebe1a5bb0
commit 506584ceee
2 changed files with 6 additions and 11 deletions

View file

@ -27,7 +27,7 @@
{/if}
<select name="format" id="format" class="formats monospace">
<optgroup label="{t}Generic formats{/t}">
<option value="best{$protocol}">
<option value="{if $config->stream}best{else}best[protocol=https]/best[protocol=http]{/if}">
{strip}
{t}Best{/t} ({$video->ext})
{/strip}
@ -37,7 +37,7 @@
{t}Remux best video with best audio{/t}
</option>
{/if}
<option value="worst{$protocol}">
<option value="{if $config->stream}worst{else}worst[protocol=https]/worst[protocol=http]{/if}">
{t}Worst{/t}
</option>
</optgroup>