events.pm: load recordings for params

in the past all recordings have been loaded. At some point this has been
changed to load only active recordings. Now there are params supported
for both forms

all_recordings - all recordings for a broadcast
active_recording - add path of active recordings to broadcast
only_active_recording - show only broadcasts with active recordings
This commit is contained in:
Milan
2024-04-18 23:19:54 +02:00
parent a55301bcfe
commit fd952dadfa
6 changed files with 27 additions and 45 deletions

View File

@@ -17,7 +17,7 @@ if ( $0 =~ /events.*?\.cgi$/ ) {
my $config = config::getFromScriptLocation();
$params->{template} = '' unless defined $params->{template};
$params->{recordings} = 1 if $params->{template} =~ /events_playout/;
$params->{all_recordings} = 1 if $params->{template} =~ /events_playout/; # deprecated
$params->{exclude_locations} = 1;
$params->{exclude_projects} = 1;