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:
@@ -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');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user