Update duplicate checking to allow for subtitles and mixed filetypes

This commit is contained in:
2012-06-16 14:37:18 +01:00
parent 85063df523
commit a3994f62e8
4 changed files with 60 additions and 13 deletions

View File

@@ -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);
}
}
?>