diff --git a/source/lib/RippingCluster/Job.class.php b/source/lib/RippingCluster/Job.class.php index 37de6f2..80bc428 100644 --- a/source/lib/RippingCluster/Job.class.php +++ b/source/lib/RippingCluster/Job.class.php @@ -183,10 +183,12 @@ class RippingCluster_Job { $database = RippingCluster_Main::instance()->database(); $database->insert( 'INSERT INTO jobs - (id,name,source,destination,title,format,video_codec,video_width,video_height,quantizer,deinterlace,audio_tracks,audio_codecs,audio_names,subtitle_tracks) + (id,name,source_plugin,rip_plugin,source,destination,title,format,video_codec,video_width,video_height,quantizer,deinterlace,audio_tracks,audio_codecs,audio_names,subtitle_tracks) VALUES(NULL,:name,:source,:destination,:title,:format,:video_codec,:video_width,:video_height,:quantizer,:deinterlace,:audio_tracks,:audio_codecs,:audio_names,:subtitle_tracks)', array( array('name' => 'name', 'value' => $this->name, 'type' => PDO::PARAM_STR), + array('name' => 'source_plugin', 'value' => $this->source_plugin, 'type' => PDO::PARAM_STR), + array('name' => 'rip_plugin', 'value' => $this->rip_plugin, 'type' => PDO::PARAM_STR), array('name' => 'source', 'value' => $this->source_filename, 'type' => PDO::PARAM_STR), array('name' => 'destination', 'value' => $this->destination_filename, 'type' => PDO::PARAM_STR), array('name' => 'title', 'value' => $this->title, 'type' => PDO::PARAM_INT), @@ -332,6 +334,14 @@ class RippingCluster_Job { public function name() { return $this->name; } + + public function sourcePlugin() { + return $this->source_plugin; + } + + public function ripPlugin() { + return $this->rip_plugin; + } public function sourceFilename() { return $this->source_filename;