Commit Graph

61 Commits

Author SHA1 Message Date
Milan
533f7c30c2 fixup! events.pm: fix listen_key 2024-07-26 21:33:34 +02:00
Milan
5329313703 events: always set utc fields
Previously utc fields have been set depending on template file names.
Now they are set always.
2024-06-01 15:21:44 +02:00
Milan
df0982c0a6 lib/calcms: remove comments and shorten expressions 2024-04-24 23:20:20 +02:00
Milan
fd952dadfa 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
2024-04-18 23:19:54 +02:00
Milan
fe857c6f65 lib: replace shift my @_ (pt2) 2023-05-20 20:22:57 +02:00
Milan
66ee4ce41e remove server_cache and client_cache 2023-02-26 23:00:14 +01:00
Milan
9c2cb45047 move config cache/base_url to locations/widget_render_url 2023-02-26 22:52:22 +01:00
Milan
89c5e80afa events.pm: remove time_of_day 2023-02-24 22:08:58 +01:00
Milan
320da87467 events.pm: fix undef on prev/next event 2023-02-24 22:08:58 +01:00
Milan
9d5b154b69 lib/calcms: remove debug code 2022-11-18 23:13:08 +01:00
Milan
c14d6a21b0 events.pm: add Dumper::sortkeys 2022-11-18 22:00:01 +01:00
Milan
1fa21789d9 events.pm: add content-type to query results 2022-10-23 22:05:36 +02:00
Milan
0825ea55af events.pm: add local_base_url to template params 2022-04-22 13:57:10 +02:00
Milan
a7d9f543ee events.pm: add template param duration 2022-04-22 13:56:21 +02:00
Milan
e85b9398fe events.pm: allow template html 2022-04-22 13:55:19 +02:00
Milan
8258ab114e events.pm: add query param last_days 2022-04-22 13:53:52 +02:00
Milan
d2d0f66d04 events.pm: output depends on format 2022-04-22 13:51:59 +02:00
Milan
41ae39771b events.pm: shorter 2022-04-22 13:49:57 +02:00
Milan
b43d10879b events.pm: new filter only_recordings 2022-04-22 13:48:28 +02:00
Milan
f99637a146 events.pm: replace and fix set_listen_key by get_listen_key 2022-04-22 13:46:55 +02:00
Milan
36204c5a6b events.cgi: add read-only-mode 2022-04-22 13:40:23 +02:00
Milan
b8cc15668d events.pm: support icons_url and thumbs_url 2021-12-10 16:55:44 +01:00
Milan
103e27969b events.pm: show previous and next event
When retrieving individual events, the previous and the following event are determined
according to the current filters to allow navigation between events.
2021-06-27 13:25:46 +02:00
Milan
a304e73145 events.pm: template_params -> tparams 2021-04-11 13:27:33 +02:00
Milan
873d546e13 category: remove
as not used for a long time by now
2021-04-11 13:13:00 +02:00
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
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
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
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
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
000b6ace49 format recurrence date 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
2360926840 configure site title and description 2020-11-15 20:29:16 +01:00
Milan
dea7f65cea events.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
ea9590f6dc remove brackets from conditions that are not needed 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
fbb7e5552b remove debug output in comments 2020-11-14 21:06:22 +01:00
Milan
da68850e1e events.pm: remove Dumper comments 2020-11-14 21:06:22 +01:00
Milan
d3fc5f998a remove cache
* remove cache, cache setup is not easy, todays servers do not really
* need it anymore
* add prototypes and fix parameter issues
* suppress redefinition
2019-04-22 00:59:40 +02:00
Milan
c38a1c33c0 show only published events at calendar view 2018-12-26 21:36:25 +01:00
Milan
a6b656779b refactoring
update package definition
fix dependencies
remove global variables
2018-09-02 09:39:24 +02:00
Milan
3e338758e9 fix array length determining and cleanup 2018-08-31 23:15:57 +02:00