fix setting defaults for recording upload
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -6,3 +6,4 @@ website/agenda_files/media/icons/*.jpg
|
|||||||
website/agenda_files/media/image/*.jpg
|
website/agenda_files/media/image/*.jpg
|
||||||
website/agenda_files/media/thumbs/*.jpg
|
website/agenda_files/media/thumbs/*.jpg
|
||||||
website/agenda_files/media/upload/*.jpg
|
website/agenda_files/media/upload/*.jpg
|
||||||
|
recordings/*.mp3
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -403,10 +403,9 @@ sub updateDatabase {
|
|||||||
studio_id => $params->{studio_id},
|
studio_id => $params->{studio_id},
|
||||||
event_id => $params->{event_id},
|
event_id => $params->{event_id},
|
||||||
path => $params->{path},
|
path => $params->{path},
|
||||||
md5 => $params->{md5} || '',
|
|
||||||
size => $params->{size},
|
size => $params->{size},
|
||||||
created_by => $user,
|
created_by => $user,
|
||||||
eventDuration => $eventDuration,
|
eventDuration => $eventDuration
|
||||||
};
|
};
|
||||||
#print STDERR "updateDatabase:" . Dumper($entry);
|
#print STDERR "updateDatabase:" . Dumper($entry);
|
||||||
|
|
||||||
@@ -432,6 +431,12 @@ sub updateDatabase {
|
|||||||
} else {
|
} else {
|
||||||
print STDERR "insert\n";
|
print STDERR "insert\n";
|
||||||
$entry->{created_by} = $user;
|
$entry->{created_by} = $user;
|
||||||
|
$entry->{processed} = 0;
|
||||||
|
$entry->{mastered} = 0;
|
||||||
|
$entry->{rmsLeft} = 0.0;
|
||||||
|
$entry->{rmsRight} = 0.0;
|
||||||
|
$entry->{audioDuration} = 0.0;
|
||||||
|
$entry->{modified_at} = time();
|
||||||
$params->{id} = audio_recordings::insert( $config, $dbh, $entry );
|
$params->{id} = audio_recordings::insert( $config, $dbh, $entry );
|
||||||
}
|
}
|
||||||
$config->{access}->{write} = 0;
|
$config->{access}->{write} = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user