diff options
-rw-r--r-- | index.php | 1 | ||||
-rw-r--r-- | templates/video.tpl | 10 | ||||
-rw-r--r-- | tools/processor.php | 3 |
3 files changed, 14 insertions, 0 deletions
@@ -36,6 +36,7 @@ else // Videos Loop $video_decode->assign("streamFormats", $streamFormats); + $video_decode->assign("streamFormatsExtra", $streamFormatsExtra); // Live $video_decode->assign("islive", $islive); diff --git a/templates/video.tpl b/templates/video.tpl index f8155ad..ee3e9f9 100644 --- a/templates/video.tpl +++ b/templates/video.tpl @@ -125,6 +125,16 @@ </a> </li> {/foreach} + + {if $streamExtra === TRUE} + {foreach $streamFormatsExtra as $download} + <li class="download-format"> + <a class="boton-descarga" href="{$download['url']}"> + {$download['format']} + </a> + </li> + {/foreach} + {/if} </ul> </details> {else} diff --git a/tools/processor.php b/tools/processor.php index a490d32..5918873 100644 --- a/tools/processor.php +++ b/tools/processor.php @@ -47,8 +47,11 @@ $islive = $vidisLiveContent; if (!empty($vdef)) { $streamFormats = $vdef; + $streamFormatsExtra = $vid; + $streamExtra = TRUE; } else { $streamFormats = $vid; + $streamExtra = FALSE; } $videoAuthor = $vidauthor; |