Commit Graph

98 Commits

Author SHA1 Message Date
Milan
10a19398d5 events: infinity scroll 2021-04-11 13:13:00 +02:00
Milan
2a92ecc882 events.pm: fix listen_key
listen_key was built more than once
2021-04-11 13:10:42 +02:00
Milan
15708d951b calendar.js: save selected day start time
set the day start time to the last selecved value for each studio
the user is assigned to.
2021-04-11 13:10:42 +02:00
Milan
7ffc6914b9 audio-recordings.cgi: set upload status
on uploading and audio processing the status is updated
2021-04-11 13:10:42 +02:00
Milan
7926fa41d7 events.pm: get_events without setting listen keys
The option set_no_listen_keys can be used to not check and generate missing
listening keys.
2021-04-11 13:10:42 +02:00
Milan
ef84ca07a3 copying events: save user selection
On copying events from another studio selection will be saved.
The next time one wants to copy saved presets are preselected.
This simplifies to frequently rebroadcast shows from another project.
2021-04-11 13:10:42 +02:00
Milan
36e9b4b5fd ListenerAccess.pm: editor defined audio shares
editors can share broadcast records for 7 days.
2021-04-11 13:10:42 +02:00
Milan
4740d307c4 series.pm: remove whitespaces from eol 2021-04-11 13:10:42 +02:00
Milan
608bcd37ec markup.pm: remove debug output 2021-04-11 13:10:42 +02:00
Milan
e3c3991db6 audio_recordings.pm: active audio uploads
If audio files become inactive because a new file is uploaded, the new
file is marked as active and the old file is marked as not active.
This allows fastly querying events and their active upload file.
Before this change all event's audio files were found and needed to be
filtered afterwards to get a set of unique events.
2021-04-11 13:10:41 +02:00
Milan
57dba5c83f series.pm: remove not needed location
already fetched by select *
2020-12-19 21:45:22 +01:00
Milan
274da97c7c events.pm: fix undef warnings 2020-12-19 21:44:45 +01:00
Milan
51c6a792a5 events.pm: export listen_key 2020-12-15 13:09:52 +01:00
Milan
5b515f1057 events.pm: allow location "_" and "-" in location ids 2020-11-15 20:29:17 +01:00
Milan
a813fdcb25 audio_recordings.pm: fetch without project/studio
for global operations project/studio must not provided on fetching
recordings from database.
2020-11-15 20:29:17 +01:00
Milan
c12d15865f events.pm: remove undefined warnings 2020-11-15 20:29:17 +01:00
Milan
215f425cda configure thumb urls
thumb url base is configured at locations/thumbs_url
2020-11-15 20:29:17 +01:00
Milan
25620ab1f5 listen to records
After the end of a show, the audio recordings are uploaded to a
directory "listen_dir" under a secret name, beginning with the
transmission date "yyyy-mm-dd hh_mm". The directory is available as URL
"listen_url", but must not be listable.  In order to gain access to the
recording for 7 days after the show, a check is done to determine
whether the file is available. A random key for the show is stored in
the database if a file matching the date is found in listen_dir.  With
this key as a name, a symbolic link to the original audio file is
created.  The random name can be used in public documents.  If the show
data is read again, the key will be retrieved from the database. File
access can be restricted by the Apache2 handler ListenerAccess.pm. With
it, access to the public symlink is possible for one week.
2020-11-15 20:29:17 +01:00
Milan
5c7f41dd47 ListenerAccess.pm: file access handler with timeout
grant/deny access to files. File access is denied one week after the given
date in filename. Filenames are indirected by symbolic links.
2020-11-15 20:29:17 +01:00
Milan
123f2046de template.pm: do not expose local path config 2020-11-15 20:29:17 +01:00
Milan
83d3e74561 markup.pm: support simple http links 2020-11-15 20:29:17 +01:00
Milan
9e074f6122 audio.pm: fix division by zero 2020-11-15 20:29:17 +01:00
Milan
000b6ace49 format recurrence date 2020-11-15 20:29:17 +01:00
Milan
c27bbdc27e audio.pm: fix loudness error 2020-11-15 20:29:17 +01:00
Milan
41bd4be39a refactor: remove dead code 2020-11-15 20:29:17 +01:00
Milan
a12bffde44 playout.pm: always update
disable need for update, seems not to be working…
2020-11-15 20:29:17 +01:00
Milan
aca95f627c playout.pm: fix unitialized warnings 2020-11-15 20:29:17 +01:00
Milan
e4eb6db1b8 events.pm: allow title field keys: ekey, skey, stkey
now single fields of full_title can be used in templates.

ekey:  episode
skey:  series
stkey: separator between series and title
2020-11-15 20:29:17 +01:00
Milan
80d7e1bb01 events.pm: remove program 2020-11-15 20:29:16 +01:00
Milan
8008e505b4 calendar: show playout errors 2020-11-15 20:29:16 +01:00
Milan
2360926840 configure site title and description 2020-11-15 20:29:16 +01:00
Milan
4229cb80ad read config as UTF8 2020-11-15 20:29:16 +01:00
Milan
726c5e8fe8 config.pm: replace Config::General
Config::General does not support Apache like definition and use of
variables. A minimal implementation of Apache-like configuration
allows to define variables by
  Define <variable-name> <variable-value>
and use them later by
  ${variable-name}
.
2020-11-15 20:29:16 +01:00
Milan
5c73484638 use entry::set_numbers and setbools for parameters 2020-11-15 20:29:16 +01:00
Milan
94d4ca59d8 set numbered parameters using entry::set_numbers 2020-11-14 21:06:23 +01:00
Milan
b2dc101354 parameter passing and dead code 2020-11-14 21:06:23 +01:00
Milan
dea7f65cea events.pm: parameter passing 2020-11-14 21:06:23 +01:00
Milan
ef7dbb7849 calcms/auth.pm: parameter passing 2020-11-14 21:06:23 +01:00
Milan
25094e45ba calcms/db.pm: parameter passing 2020-11-14 21:06:23 +01:00
Milan
a769424a6e remove use base Exporter;
no need to call import
2020-11-14 21:06:23 +01:00
Milan
7b565c6d9b use map for table columns 2020-11-14 21:06:23 +01:00
Milan
ea9590f6dc remove brackets from conditions that are not needed 2020-11-14 21:06:23 +01:00
Milan
4584125923 remove comments and cleanup 2020-11-14 21:06:23 +01:00
Milan
9b7a1ebc88 support markdown in editor
events can be edited in markdown. markup language can be set in series
template for newly created events.
2020-11-14 21:06:22 +01:00
Milan
1607b5468f calcms/series: reformat 2020-11-14 21:06:22 +01:00
Milan
41b0495c2e use map instead for on creating hash tables 2020-11-14 21:06:22 +01:00
Milan
da5f7f673d user_default_studios.pm: user defaults
save default studio for each project. on project change the default
studio will be selected.
2020-11-14 21:06:22 +01:00
Milan
9860eee1e2 Refactor markup and creole_wiki 2020-11-14 21:06:22 +01:00
Milan
b9f0870955 markup: cleanup comments 2020-11-14 21:06:22 +01:00
Milan
fbb7e5552b remove debug output in comments 2020-11-14 21:06:22 +01:00