From 40ff469e8f74e130fd854c1aa74e63c4c53e5b22 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Fri, 17 Mar 2023 10:52:44 -0700 Subject: [PATCH] video: add external flag Signed-off-by: Varun Patil --- lib/Controller/VideoController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Controller/VideoController.php b/lib/Controller/VideoController.php index 8bbee125..4726fa22 100644 --- a/lib/Controller/VideoController.php +++ b/lib/Controller/VideoController.php @@ -330,10 +330,11 @@ class VideoController extends ApiBase private function getUpstream(string $client, string $path, string $profile) { $returnCode = $this->getUpstreamInternal($client, $path, $profile); + $isExternal = $this->config->getSystemValue('memories.vod.external', false); // If status code was 0, it's likely the server is down // Make one attempt to start after killing whatever is there - if (0 !== $returnCode) { + if (0 !== $returnCode || $isExternal) { return $returnCode; }