Prevent archives being extracted multiple times

This commit is contained in:
2012-08-27 00:35:35 +01:00
parent 1d4461dbc9
commit 954fdc534b
2 changed files with 6 additions and 2 deletions

View File

@@ -14,6 +14,10 @@ class DownloadDispatcher_Utility_MediaFile {
return preg_match('/(?<!(?:\.|-)sample)\.(srt|smi)$/i', $filename);
}
public static function isArchiveFile($filename) {
return preg_match('/(?<!(?:\.|-)sample)\.(rar)$/i', $filename);
}
}