Fixes detection of Bluray source directories

Fixes the classname of the BlurayDirectoryIterator filter.
Updates the filter to accept only directories that contain a BDAV/BDMV
subdirectory, similar to the VIDEO_TS directory found in DVD sources.
This commit is contained in:
2010-09-16 23:40:53 +01:00
parent d464dd74c5
commit f9de80a8b4

View File

@@ -1,8 +1,9 @@
<?php <?php
class RippingCluster_Utility_DvdDirectoryIterator extends FilterIterator { class RippingCluster_Utility_BlurayDirectoryIterator extends FilterIterator {
public function accept() { 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');
} }
} }