CC-4011: System -> Media Folders: Changing page will stop removing a watched folder with lots of files (50,000)
-Changed doing 50,000 database calls to 1.
This commit is contained in:
parent
84f867a00f
commit
a63b765621
2 changed files with 9 additions and 16 deletions
|
@ -890,8 +890,7 @@ Logging::log("getting media! - 2");
|
|||
exec($command, $output, $rv);
|
||||
if ($rv != 0 || (!empty($output) && $output[0] == 'TagLib: MPEG::Properties::read() -- Could not find a valid last MPEG frame in the stream.')) {
|
||||
$result = array("code" => 110, "message" => "This file appears to be corrupted and will not be added to media library.");
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
//Martin K.: changed to rename: Much less load + quicker since this is an atomic operation
|
||||
$r = @rename($audio_file, $audio_stor);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue