Update duplicate checking to allow for subtitles and mixed filetypes
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
class DownloadDispatcher_Utility_VideoFilesIterator extends FilterIterator {
|
||||
public function accept() {
|
||||
$filename = $this->current()->getFilename();
|
||||
if (preg_match('/^sample/', $filename)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return DownloadDispatcher_Utility_MediaFile::isVideoFile($filename);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user