diff --git a/objects/Encoder.php b/objects/Encoder.php index 04151abc..784b89a3 100644 --- a/objects/Encoder.php +++ b/objects/Encoder.php @@ -720,9 +720,9 @@ public static function getVideoFile($videoURL, $queue_id, $downloadedFile, $dest return $myfile; } - public static function areDownloading() + public static function areDownloading($status = array(Encoder::$STATUS_DOWNLOADED, Encoder::$STATUS_DOWNLOADING)) { - return self::getQueue($status = array(Encoder::$STATUS_DOWNLOADED, Encoder::$STATUS_DOWNLOADING)); + return self::getQueue($status); } public static function areEncoding() @@ -1036,7 +1036,7 @@ public static function run($try = 0) return false; } - if(!self::canDownloadNow()){ + if(!self::areDownloading($status = array(Encoder::$STATUS_DOWNLOADING))){ //error_log("You cannot download and cannot encode now, please wait "); return false; }