Skip to content

Commit b247caf

Browse files
Allow force encoder URL
1 parent 3191278 commit b247caf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

objects/configuration.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -496,8 +496,10 @@ function shouldUseEncodernetwork(){
496496
}
497497

498498
function getEncoderURL() {
499-
global $getEncoderURL, $advancedCustom;
500-
499+
global $global, $getEncoderURL, $advancedCustom;
500+
if(!empty($global['forceEncoderURL'])){
501+
return $global['forceEncoderURL'];
502+
}
501503
if (empty($getEncoderURL)) {
502504
$getEncoderURL = ObjectYPT::getCache("getEncoderURL", 60);
503505
if (empty($getEncoderURL)) {

0 commit comments

Comments
 (0)