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.
This commit is contained in:
2010-06-08 22:23:18 +01:00
parent 65f2bbeb80
commit a5282ebe5a

View File

@@ -188,10 +188,8 @@ class HandBrakeCluster_Job {
// Construct the rip options // Construct the rip options
$rip_options = array( $rip_options = array(
'nice' => $config->get('rips.nice', 15), 'nice' => $config->get('rips.nice', 15),
'input_dir' => dirname($this->source_filename) . DIRECTORY_SEPARATOR, 'input_filename' => dirname($this->source_filename) . DIRECTORY_SEPARATOR . basename($this->source_filename),
'input_filename' => basename($this->source_filename), 'output_filename' => dirname($this->destination_filename) . DIRECTORY_SEPARATOR . basename($this->destination_filename),
'output_dir' => dirname($this->destination_filename) . DIRECTORY_SEPARATOR,
'output_filename' => basename($this->destination_filename),
'title' => $this->title, 'title' => $this->title,
'format' => $this->format, 'format' => $this->format,
'video_codec' => $this->video_codec, 'video_codec' => $this->video_codec,