diff --git a/lib/RippingCluster/Source/Plugin/Bluray.class.php b/lib/RippingCluster/Source/Plugin/Bluray.class.php index 4ecfc27..b3a8c80 100644 --- a/lib/RippingCluster/Source/Plugin/Bluray.class.php +++ b/lib/RippingCluster/Source/Plugin/Bluray.class.php @@ -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"; /** diff --git a/lib/RippingCluster/Utility/BlurayDirectoryIterator.class.php b/lib/RippingCluster/Utility/BlurayDirectoryIterator.class.php index ec1c05b..b84dc6b 100644 --- a/lib/RippingCluster/Utility/BlurayDirectoryIterator.class.php +++ b/lib/RippingCluster/Utility/BlurayDirectoryIterator.class.php @@ -1,8 +1,9 @@ current()->getPathname() . DIRECTORY_SEPARATOR . 'BDAV') || + is_dir($this->current()->getPathname() . DIRECTORY_SEPARATOR . 'BDMV'); } } diff --git a/lib/RippingCluster/Worker/Plugin/Bluray.class.php b/lib/RippingCluster/Worker/Plugin/Bluray.class.php index 5035b55..a25b40d 100644 --- a/lib/RippingCluster/Worker/Plugin/Bluray.class.php +++ b/lib/RippingCluster/Worker/Plugin/Bluray.class.php @@ -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 } diff --git a/lib/RippingCluster/Worker/Plugin/HandBrake.class.php b/lib/RippingCluster/Worker/Plugin/HandBrake.class.php index 316ec03..bea4c13 100644 --- a/lib/RippingCluster/Worker/Plugin/HandBrake.class.php +++ b/lib/RippingCluster/Worker/Plugin/HandBrake.class.php @@ -9,6 +9,8 @@ class RippingCluster_Worker_Plugin_HandBrake extends RippingCluster_PluginBase i private $output; + private $gearman_job; + private $job; private $rip_options;