Correct download name

This commit is contained in:
Pierre Rudloff 2015-06-28 18:53:19 +02:00
parent 641f107b37
commit 90e2475103

View file

@ -35,7 +35,7 @@ value="{$video->webpage_url}" />
{foreach $video->formats as $format} {foreach $video->formats as $format}
<li itemprop="encoding" <li itemprop="encoding"
itemscope itemtype="http://schema.org/VideoObject"> itemscope itemtype="http://schema.org/VideoObject">
<a download="{$video->ext|replace:$format->ext:$video->_filename}" itemprop="contentUrl" <a download="{$video->_filename|replace:$video->ext:$format->ext}" itemprop="contentUrl"
href="{$format->url|escape}"> href="{$format->url|escape}">
<span itemprop="videoQuality">{$format->format}</span> (<span itemprop="encodingFormat">{$format->ext}</span>) <span itemprop="videoQuality">{$format->format}</span> (<span itemprop="encodingFormat">{$format->ext}</span>)
</a></li> </a></li>