Fixing bugs in 'make_email'
Community_News/make_email: Many bugs relating to the review month versus the recording date. Some of these must have been there for 12 years! Rerwrote several parts and added a function for converting Perl date formats. Added '-force' option to turn off checks when the script is run in the month after a review month (not uncommon, but fairly infrequent). Fix for writing bad records to the date cache file. Updates to POD documentation. Community_News/make_email_template.tpl: Added new shared variables for the review year and month as opposed to the recording year and month. Improved the text explaining the "handouts" versus the final show notes. Removed the reference to the target show itself. This used to be where the "handout" notes were written, then they were replaced before show release. This isn't being done any more. Community_News/recording_dates.dat: Updated with the correct recording date (and time) for the review of shows in March 2025.
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
[%# make_email_template.tpl 2025-02-23 -%]
|
||||
[%# make_email_template.tpl 2025-04-03 -%]
|
||||
[%# Community News email template -%]
|
||||
[% USE wrap -%]
|
||||
[% subject %]
|
||||
|
||||
[% FILTER replace('\n', ' ') -%]
|
||||
[% IF utc.days > 6 -%]
|
||||
The Community News for [% utc.month %] will be recorded using Mumble on
|
||||
The Community News for [% utc.revmonth %] will be recorded using Mumble on
|
||||
[% ELSE -%]
|
||||
The next Community News will be recorded using Mumble on
|
||||
[% END -%]
|
||||
@@ -14,13 +14,13 @@ The next Community News will be recorded using Mumble on
|
||||
|
||||
[% FILTER replace('\n', ' ') -%]
|
||||
During the recording HPR Volunteers will review the shows released during
|
||||
[% utc.month %] [% utc.year %], they will read comments submitted during that
|
||||
[% utc.revmonth %] [% utc.revyear %], they will read comments submitted during that
|
||||
month, as well as summarising email sent to the HPR mailing list.
|
||||
[% END %]
|
||||
|
||||
[% FILTER replace('\n', ' ') -%]
|
||||
All HPR listeners are welcome to join in, but we ask that you listen to all
|
||||
the shows in [% utc.month %] before you do so.
|
||||
the shows in [% utc.revmonth %] before you do so.
|
||||
[% END %]
|
||||
|
||||
[% FILTER replace('\n', ' ') -%]
|
||||
@@ -32,18 +32,18 @@ make a change.
|
||||
[% END %]
|
||||
|
||||
[% FILTER replace('\n', ' ') -%]
|
||||
The notes for the recording are an extended version of the show notes. These
|
||||
extended elements are removed before the show is made fully available on the
|
||||
HPR site (and on archive.org). Comments which might have been missed in the
|
||||
last recording will be marked in red. Comments which would normally be in this
|
||||
month, but which were read out in the last show are marked in green. Comments
|
||||
made in the past month to older shows will be displayed in full (so they are
|
||||
easier to read).
|
||||
The notes for the recording are an extended version of the show notes.
|
||||
A version without these extended elements is made for release on the HPR site
|
||||
(and on archive.org). Comments which might have been missed in the last
|
||||
recording will be marked in red in the extended version. Comments which would
|
||||
normally be in this month, but which were read out in the last show are marked
|
||||
in green. Comments made in the past month to older shows will be displayed in
|
||||
full (so they are easier to read).
|
||||
[% END %]
|
||||
|
||||
[% FILTER replace('\n', ' ') -%]
|
||||
Look here for the notes for this recording:
|
||||
https://hackerpublicradio.org/eps/hpr[% episode %]/index.html
|
||||
The notes for this recording will be made available to participants before the
|
||||
recording begins.
|
||||
[% END %]
|
||||
|
||||
Summary:
|
||||
|
Reference in New Issue
Block a user