From d1f22bc1a0cf874e76a626dd770a201a0ee303a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Mon, 7 Dec 2020 17:46:03 -0500 Subject: Add streamFormatsExtra to download --- index.php | 1 + templates/video.tpl | 10 ++++++++++ tools/processor.php | 3 +++ 3 files changed, 14 insertions(+) diff --git a/index.php b/index.php index 6cef35b..6379ef5 100644 --- a/index.php +++ b/index.php @@ -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 @@ {/foreach} + + {if $streamExtra === TRUE} + {foreach $streamFormatsExtra as $download} +
  • + + {$download['format']} + +
  • + {/foreach} + {/if} {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; -- cgit v1.2.3