From a5282ebe5ad5734c228c112d18817bc4dfe05b97 Mon Sep 17 00:00:00 2001 From: Ben Roberts Date: Tue, 8 Jun 2010 22:23:18 +0100 Subject: [PATCH] Fix issue with input/ouput filenames Current version of the worker script expects the input and output filenames as whole strings not constituent parts. Altered the Job class to pass the filenames in as the expected format. --- HandBrakeCluster/Job.class.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/HandBrakeCluster/Job.class.php b/HandBrakeCluster/Job.class.php index 7807d34..5aca165 100644 --- a/HandBrakeCluster/Job.class.php +++ b/HandBrakeCluster/Job.class.php @@ -188,10 +188,8 @@ class HandBrakeCluster_Job { // Construct the rip options $rip_options = array( 'nice' => $config->get('rips.nice', 15), - 'input_dir' => dirname($this->source_filename) . DIRECTORY_SEPARATOR, - 'input_filename' => basename($this->source_filename), - 'output_dir' => dirname($this->destination_filename) . DIRECTORY_SEPARATOR, - 'output_filename' => basename($this->destination_filename), + 'input_filename' => dirname($this->source_filename) . DIRECTORY_SEPARATOR . basename($this->source_filename), + 'output_filename' => dirname($this->destination_filename) . DIRECTORY_SEPARATOR . basename($this->destination_filename), 'title' => $this->title, 'format' => $this->format, 'video_codec' => $this->video_codec,