event.cgi -> broadcast.cgi

event.cgi is on a uBlock list, so we rename it.
This commit is contained in:
Milan
2024-02-17 22:15:57 +01:00
parent 62c0b42383
commit 022c271118
8 changed files with 14 additions and 14 deletions

View File

@@ -767,14 +767,14 @@ sub download {
if ( $datetime =~ /(\d\d\d\d\-\d\d\-\d\d)[ T](\d\d)\:(\d\d)/ ) { if ( $datetime =~ /(\d\d\d\d\-\d\d\-\d\d)[ T](\d\d)\:(\d\d)/ ) {
$datetime = $1 . '\ ' . $2 . '_' . $3; $datetime = $1 . '\ ' . $2 . '_' . $3;
} else { } else {
print STDERR "event.cgi::download no valid datetime found $datetime\n"; print STDERR "broadcast.cgi::download no valid datetime found $datetime\n";
return; return;
} }
my $archive_dir = $config->{locations}->{local_archive_dir}; my $archive_dir = $config->{locations}->{local_archive_dir};
my $archive_url = $config->{locations}->{local_archive_url}; my $archive_url = $config->{locations}->{local_archive_url};
print STDERR "archive_dir: " . $archive_dir . "\n"; print STDERR "archive_dir: " . $archive_dir . "\n";
print STDERR "archive_url: " . $archive_url . "\n"; print STDERR "archive_url: " . $archive_url . "\n";
print STDERR "event.cgi::download look for : $archive_dir/$datetime*.mp3\n"; print STDERR "broadcast.cgi::download look for : $archive_dir/$datetime*.mp3\n";
my @files = glob( $archive_dir . '/' . $datetime . '*.mp3' ); my @files = glob( $archive_dir . '/' . $datetime . '*.mp3' );
if ( @files > 0 ) { if ( @files > 0 ) {
@@ -814,12 +814,12 @@ sub download_audio {
if ( $datetime =~ /(\d\d\d\d\-\d\d\-\d\d)[ T](\d\d)\:(\d\d)/ ) { if ( $datetime =~ /(\d\d\d\d\-\d\d\-\d\d)[ T](\d\d)\:(\d\d)/ ) {
$datetime = $1 . '\ ' . $2 . '_' . $3; $datetime = $1 . '\ ' . $2 . '_' . $3;
} else { } else {
print STDERR "event.cgi::download no valid datetime found $datetime\n"; print STDERR "broadcast.cgi::download no valid datetime found $datetime\n";
return; return;
} }
my $archive_dir = $config->{locations}->{local_archive_dir}; my $archive_dir = $config->{locations}->{local_archive_dir};
print STDERR "archive_dir: " . $archive_dir . "\n"; print STDERR "archive_dir: " . $archive_dir . "\n";
print STDERR "event.cgi::download look for : $archive_dir/$datetime*.mp3\n"; print STDERR "broadcast.cgi::download look for : $archive_dir/$datetime*.mp3\n";
my @files = glob( $archive_dir . '/' . $datetime . '*.mp3' ); my @files = glob( $archive_dir . '/' . $datetime . '*.mp3' );
if ( @files > 0 ) { if ( @files > 0 ) {
my $file = $files[0]; my $file = $files[0];

View File

@@ -800,7 +800,7 @@ function handleEvent(id, event){
if (series_id <0) return; if (series_id <0) return;
if (event_id <0) return; if (event_id <0) return;
var url="event.cgi?action=edit&project_id="+project_id+"&studio_id="+studio_id+"&series_id="+series_id+"&event_id="+event_id; var url="broadcast.cgi?action=edit&project_id="+project_id+"&studio_id="+studio_id+"&series_id="+series_id+"&event_id="+event_id;
if(event.which==1){ if(event.which==1){
load(url); load(url);
} }
@@ -840,7 +840,7 @@ function handleSchedule(id, start_date, event){
if(event.which==1){ if(event.which==1){
//left click: create event from schedule //left click: create event from schedule
var url="event.cgi?action=show_new_event_from_schedule&project_id="+project_id+"&studio_id="+studio_id+"&series_id="+series_id+"&start_date="+start_date; var url="broadcast.cgi?action=show_new_event_from_schedule&project_id="+project_id+"&studio_id="+studio_id+"&series_id="+series_id+"&start_date="+start_date;
load(url); load(url);
} }
if(event.which==3){ if(event.which==3){

View File

@@ -101,7 +101,7 @@ function copyFromEvent(resultSelector){
function loadEvent(projectId,studioId,seriesId,eventId, callback){ function loadEvent(projectId,studioId,seriesId,eventId, callback){
var url="event.cgi"; var url="broadcast.cgi";
url+="?project_id="+projectId; url+="?project_id="+projectId;
url+="&studio_id="+studioId; url+="&studio_id="+studioId;
url+="&series_id="+seriesId; url+="&series_id="+seriesId;
@@ -192,7 +192,7 @@ function changeSeries(seriesId){
$.post( $.post(
url, url,
function(data){ function(data){
var url='event.cgi?'; var url='broadcast.cgi?';
url += '&project_id='+projectId; url += '&project_id='+projectId;
url += '&studio_id='+studioId; url += '&studio_id='+studioId;
url += '&series_id='+newSeriesId; url += '&series_id='+newSeriesId;

View File

@@ -10,7 +10,7 @@ function edit_event(event_id, series_id, studio_id, project_id, hide_series){
); );
}else{ }else{
elem.addClass('active'); elem.addClass('active');
var url="event.cgi?project_id="+project_id+"&studio_id="+studio_id+"&series_id="+series_id+"&event_id="+event_id+"&action=edit"; var url="broadcast.cgi?project_id="+project_id+"&studio_id="+studio_id+"&series_id="+series_id+"&event_id="+event_id+"&action=edit";
if ((hide_series!=null) && (hide_series!=''))url+='&hide_series=1'; if ((hide_series!=null) && (hide_series!=''))url+='&hide_series=1';
load(url); load(url);
} }

View File

@@ -842,7 +842,7 @@ sub reassign_event {
} }
my $url = my $url =
'event.cgi?project_id=' 'broadcast.cgi?project_id='
. $project_id . $project_id
. '&studio_id=' . '&studio_id='
. $studio_id . $studio_id
@@ -1378,7 +1378,7 @@ sub rebuild_episodes {
for my $event (@$events) { for my $event (@$events) {
print qq{<tr class="$event->{class}" onclick="window.location.href=\$(this).attr('href');"} print qq{<tr class="$event->{class}" onclick="window.location.href=\$(this).attr('href');"}
. qq{ href="event.cgi?action=edit&project_id=$event->{project_id}&studio_id=$event->{studio_id}&series_id=$series_id&event_id=$event->{id}"\n} . qq{ href="broadcast.cgi?action=edit&project_id=$event->{project_id}&studio_id=$event->{studio_id}&series_id=$series_id&event_id=$event->{id}"\n}
. qq{>} . qq{>}
. join( "", map { "<td>" . ( $event->{$_} // '-' ) . "</td>" } @cols ) . join( "", map { "<td>" . ( $event->{$_} // '-' ) . "</td>" } @cols )
. "</tr>\n"; . "</tr>\n";

View File

@@ -220,7 +220,7 @@
<!-- edit event --> <!-- edit event -->
<div id="edit_event" class="panel"> <div id="edit_event" class="panel">
<form id="event_<TMPL_VAR event_id>" method="post" <form id="event_<TMPL_VAR event_id>" method="post"
action="event.cgi?project_id=<TMPL_VAR .project_id>&studio_id=<TMPL_VAR .studio_id>&series_id=<TMPL_VAR .series_id><TMPL_UNLESS new_event>&event_id=<TMPL_VAR .event_id></TMPL_UNLESS>" action="broadcast.cgi?project_id=<TMPL_VAR .project_id>&studio_id=<TMPL_VAR .studio_id>&series_id=<TMPL_VAR .series_id><TMPL_UNLESS new_event>&event_id=<TMPL_VAR .event_id></TMPL_UNLESS>"
> >
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>"> <input type="hidden" name="project_id" value="<TMPL_VAR .project_id>">
<input type="hidden" name="studio_id" value="<TMPL_VAR .studio_id>"> <input type="hidden" name="studio_id" value="<TMPL_VAR .studio_id>">

View File

@@ -43,7 +43,7 @@
</TMPL_IF> </TMPL_IF>
<TMPL_IF .allow.create_event> <TMPL_IF .allow.create_event>
<form action="event.cgi" <form action="broadcast.cgi"
style="float:left" style="float:left"
> >
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>"> <input type="hidden" name="project_id" value="<TMPL_VAR .project_id>">

View File

@@ -34,7 +34,7 @@
</TMPL_IF> </TMPL_IF>
<TMPL_IF .allow.create_event> <TMPL_IF .allow.create_event>
<form action="event.cgi" <form action="broadcast.cgi"
style="float:left" style="float:left"
> >
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>"> <input type="hidden" name="project_id" value="<TMPL_VAR .project_id>">