2022-10-01 16:51:11 +00:00
|
|
|
<!--% MACRO zero_pad_left(word, pad_length) BLOCK %-->
|
2023-08-19 12:34:50 +00:00
|
|
|
<!--% IF pad_length %-->
|
|
|
|
<!--% zero_pad_format = "%0${pad_length}s" %-->
|
|
|
|
<!--% ELSE %-->
|
|
|
|
<!--% zero_pad_format = "%04s" %-->
|
|
|
|
<!--% END %-->
|
|
|
|
<!--% USE String(word) %-->
|
|
|
|
<!--% String.format(zero_pad_format) %-->
|
2022-08-01 01:33:54 +00:00
|
|
|
<!--% END %-->
|
2022-08-04 23:31:35 +00:00
|
|
|
|
|
|
|
<!--% MACRO display_choice(choice, display_when_true, display_when_false) BLOCK %-->
|
|
|
|
<!--% IF choice == 1 %--><!--% display_when_true %-->
|
|
|
|
<!--% ELSE %--><!--% display_when_false %--><!--% END %-->
|
|
|
|
<!--% END %-->
|
2022-08-05 19:49:00 +00:00
|
|
|
|
2022-08-30 01:54:42 +00:00
|
|
|
<!--% MACRO display_episode_duration(duration_sec) BLOCK %-->
|
|
|
|
<!--% seconds = duration_sec % 60 %-->
|
|
|
|
<!--% USE format %-->
|
|
|
|
<!--% minutes_only = format("%d") %-->
|
2023-08-19 12:34:50 +00:00
|
|
|
<!--% minutes = minutes_only(duration_sec / 60) %-->
|
2022-08-30 01:54:42 +00:00
|
|
|
<!--% hours_only = format("%d") %-->
|
|
|
|
<!--% hours = hours_only(minutes / 60) %-->
|
|
|
|
<!--% IF hours >= 1 %-->
|
|
|
|
<!--% minutes = minutes - hours * 60 %-->
|
|
|
|
<!--% END %-->
|
|
|
|
<!--% display_hours = format("%02d:%02d:%02d") %-->
|
|
|
|
<!--% display_hours(hours,minutes,seconds) %-->
|
|
|
|
<!--% END %-->
|
|
|
|
|
2022-08-07 23:54:47 +00:00
|
|
|
<!--% MACRO display_explicit(is_explicit) BLOCK %-->
|
|
|
|
<!--% display_choice(is_explicit, 'Explicit', 'Clean') %-->
|
|
|
|
<!--% END %-->
|
|
|
|
|
2022-08-17 19:47:39 +00:00
|
|
|
<!--% MACRO display_explicit_feed(is_explicit) BLOCK %-->
|
|
|
|
<!--% display_choice(is_explicit, 'yes', 'no') %-->
|
|
|
|
<!--% END %-->
|
2022-08-17 19:50:03 +00:00
|
|
|
|
2024-05-23 19:14:42 +00:00
|
|
|
<!--% MACRO display_explicit_feed_2(is_explicit) BLOCK %-->
|
|
|
|
<!--% display_choice(is_explicit, 'Yes', 'No') %-->
|
|
|
|
<!--% END %-->
|
|
|
|
|
2022-08-17 19:50:03 +00:00
|
|
|
<!--% MACRO format_feed_date(date_to_format) BLOCK %-->
|
2022-10-08 12:44:47 +00:00
|
|
|
<!--% USE feed_date = date(format = '%a, %d %b %Y %H:%M:%S +0000', gmt=1) %-->
|
2022-08-17 19:50:03 +00:00
|
|
|
<!--% feed_date.format(date_to_format) %-->
|
|
|
|
<!--% END %-->
|
|
|
|
|
2023-06-17 20:04:35 +00:00
|
|
|
<!--% MACRO format_iso8601_date(date_to_format) BLOCK %-->
|
|
|
|
<!--% USE iso8601_date = date(format = '%Y-%m-%dT%H:%M:%SZ', gmt=1) %-->
|
|
|
|
<!--% iso8601_date.format(date_to_format) %-->
|
|
|
|
<!--% END %-->
|
|
|
|
|
2024-09-15 19:42:46 +00:00
|
|
|
<!--% MACRO tag_to_id(tag, is_index) BLOCK %-->
|
|
|
|
<!--% tag = tag.replace('\s+','_') %-->
|
|
|
|
<!--% IF is_index %-->
|
|
|
|
<!--% tag.upper %-->
|
|
|
|
<!--% ELSE %-->
|
|
|
|
<!--% tag.lower %-->
|
|
|
|
<!--% END %-->
|
|
|
|
<!--% END %-->
|
|
|
|
|
2023-09-09 16:54:19 +00:00
|
|
|
<!--% MACRO absolute_url(base, path) BLOCK %-->
|
|
|
|
<!--% UNLESS base.empty %-->
|
|
|
|
<!--% UNLESS base.substr(-1) == '/' %-->
|
|
|
|
<!--% base = base _ '/' %-->
|
|
|
|
<!--% END %-->
|
|
|
|
<!--% END %-->
|
|
|
|
<!--% UNLESS path.empty %-->
|
|
|
|
<!--% IF path.substr(0,1) == '/' %-->
|
|
|
|
<!--% path = path.substr(1) %-->
|
|
|
|
<!--% END %-->
|
|
|
|
<!--% END %-->
|
|
|
|
<!--% base _ path %-->
|
|
|
|
<!--% END %-->
|
|
|
|
|
2022-08-05 19:49:00 +00:00
|
|
|
<!--% MACRO absolute_path(baseurl) BLOCK %-->
|
|
|
|
<!--% IF baseurl %-->./<!--% ELSE %-->/<!--% END %-->
|
|
|
|
<!--% END %-->
|
2022-08-07 18:26:05 +00:00
|
|
|
|
2022-10-01 17:18:35 +00:00
|
|
|
<!--% MACRO media_basepath(baseurl, media_baseurl) BLOCK %-->
|
|
|
|
<!--% IF media_baseurl %-->
|
|
|
|
<!--% media_baseurl %--><!--% ELSE %-->
|
|
|
|
<!--% IF baseurl %--><!--% baseurl %--><!--% ELSE %-->/<!--% END %-->
|
2022-09-18 20:18:05 +00:00
|
|
|
<!--% END %-->
|
2022-10-01 17:23:36 +00:00
|
|
|
<!--% END %-->
|
|
|
|
|
|
|
|
<!--% MACRO media_path(episode_id, episode_type, media_type, baseurl, media_baseurl) BLOCK %-->
|
2023-08-19 12:34:50 +00:00
|
|
|
<!--% IF episode_type == "twat" %-->
|
|
|
|
<!--% padding = 3 %-->
|
|
|
|
<!--% media_folder = "eps/"; padding = 3 %-->
|
|
|
|
<!--% ELSE %-->
|
|
|
|
<!--% media_folder = "local/" %-->
|
|
|
|
<!--% END %-->
|
|
|
|
<!--% IF media_baseurl %-->
|
|
|
|
<!--% transcription_types = "txt srt vtt" %-->
|
|
|
|
<!--% USE String(transcription_types) %-->
|
|
|
|
<!--% USE String(media_baseurl) %-->
|
|
|
|
<!--% IF transcription_types.search(media_type) && media_baseurl.search('archive.org') %-->
|
|
|
|
<!--% media_baseurl = "${media_baseurl}hpr\$eps_id/" %-->
|
|
|
|
<!--% END %-->
|
|
|
|
<!--% media_folder = "" %-->
|
|
|
|
<!--% media_baseurl = media_baseurl.replace('\$eps_id', zero_pad_left(episode_id)) %-->
|
|
|
|
<!--% END %-->
|
|
|
|
<!--% media_basepath(baseurl, media_baseurl) %--><!--% media_folder %--><!--% episode_type %--><!--% zero_pad_left(episode_id, padding) %-->.<!--% media_type %-->
|
2022-10-01 17:23:36 +00:00
|
|
|
<!--% END %-->
|
2022-09-18 20:18:05 +00:00
|
|
|
|
2022-09-17 21:28:39 +00:00
|
|
|
<!--% MACRO step_navigation(baseurl, links, folder) BLOCK %-->
|
2022-09-20 02:00:18 +00:00
|
|
|
<!--% IF folder %-->
|
|
|
|
<!--% folder = folder %--><!--% ELSE %--><!--% folder = "hpr" %-->
|
2022-09-17 21:28:39 +00:00
|
|
|
<!--% END %-->
|
2023-07-31 14:27:17 +00:00
|
|
|
<small><a href="<!--% absolute_path(baseurl) %-->eps/<!--% folder %--><!--% zero_pad_left(links.earliest) %-->/index.html" rel="first"><< First</a>,
|
|
|
|
<!--% IF links.previous %-->
|
|
|
|
<a href="<!--% absolute_path(baseurl) %-->eps/<!--% folder %--><!--% zero_pad_left(links.previous) %-->/index.html" rel="previous">< Previous</a>,
|
|
|
|
<!--% ELSE %-->
|
|
|
|
<span><</span> Previous,
|
|
|
|
<!--% END %-->
|
|
|
|
<!--% IF links.next %-->
|
|
|
|
<a href="<!--% absolute_path(baseurl) %-->eps/<!--% folder %--><!--% zero_pad_left(links.next) %-->/index.html" rel="next">Next ></a>,
|
|
|
|
<!--% ELSE %-->
|
|
|
|
Next <span>></span>
|
|
|
|
<!--% END %-->
|
|
|
|
<a href="<!--% absolute_path(baseurl) %-->eps/<!--% folder %--><!--% zero_pad_left(links.latest) %-->/index.html" rel="last">Latest >></a></small>
|
2022-08-07 18:26:05 +00:00
|
|
|
<!--% END %-->
|