Merge branch 'feature-bluray'

This commit is contained in:
2010-10-12 19:26:57 +01:00
4 changed files with 41 additions and 2 deletions

View File

@@ -2,6 +2,10 @@
class RippingCluster_Source_Plugin_Bluray extends RippingCluster_PluginBase implements RippingCluster_Source_IPlugin {
/**
* Name of this plugin
* @var string
*/
const PLUGIN_NAME = "Bluray";
/**

View File

@@ -1,8 +1,9 @@
<?php
class RippingCluster_Utility_DvdDirectoryIterator extends FilterIterator {
class RippingCluster_Utility_BlurayDirectoryIterator extends FilterIterator {
public function accept() {
return true; // TODO Determine if the current directory item represents a Bluray source or not
return is_dir($this->current()->getPathname() . DIRECTORY_SEPARATOR . 'BDAV') ||
is_dir($this->current()->getPathname() . DIRECTORY_SEPARATOR . 'BDMV');
}
}

View File

@@ -2,14 +2,42 @@
class RippingCluster_Worker_Bluray extends RippingCluster_PluginBase implements RippingCluster_Worker_IPlugin {
/**
* Name of this plugin
* @var string
*/
const PLUGIN_NAME = 'Bluray';
/**
* Output produced by the worker process
* @var string
*/
private $output;
/**
* Gearman Job object describing the task distributed to this worker
* @var GearmanJob
*/
private $gearman_job;
/**
* Ripping Job that is being processed by this Worker
* @var RippingCluster_Job
*/
private $job;
/**
* Associative array of options describing the rip to be carried out
* @var array(string=>string)
*/
private $rip_options;
/**
* Constructs a new instance of this Worker class
*
* @param GearmanJob $gearman_job GearmanJob object describing the task distributed to this worker
* @throws RippingCluster_Exception_LogicException
*/
private function __construct(GearmanJob $gearman_job) {
$this->output = '';
@@ -44,6 +72,10 @@ class RippingCluster_Worker_Bluray extends RippingCluster_PluginBase implements
$rip->execute();
}
/**
* Executes the process for ripping the source to the final output
*
*/
private function execute() {
// TODO
}

View File

@@ -9,6 +9,8 @@ class RippingCluster_Worker_Plugin_HandBrake extends RippingCluster_PluginBase i
private $output;
private $gearman_job;
private $job;
private $rip_options;