Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Jun 4, 2024
1 parent 841517d commit f798bbe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions objects/Encoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit f798bbe

Please sign in to comment.