video: add external flag

Signed-off-by: Varun Patil <varunpatil@ucla.edu>
pull/504/head
Varun Patil 2023-03-17 10:52:44 -07:00
parent 149d2469bd
commit 40ff469e8f
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}