Add listening to and downloading of host M3U playlist

This commit is contained in:
2025-11-15 13:07:41 -05:00
parent 354d8d24cd
commit 1dec9996f8

View File

@@ -30,6 +30,15 @@
<div><label>profile:</label> <!--% this_host.profile %--></div>
<p><label>episodes:</label> <strong><!--% hpr_show_count + twt_show_count %--></strong></p>
</div>
<div id="listen_to_shows">
<p>Listen to the shows:<br>
<script src="<!--% absolute_url(baseurl,'//scripts/m3u-player.js') %-->" defer="defer"></script>
<audio controls src="<!--% absolute_url(baseurl,'//correspondents') %-->/<!--% zero_pad_left(this_host.hostid) %-->/playlist.m3u8" type="audio/x-mpegurl">
Your browser does not support the HTML5 audio player.
</audio>
<noscript>Playback without Javascript needs native m3u-support.</noscript><br>
<a href="<!--% absolute_url(baseurl,'//correspondents') %-->/<!--% zero_pad_left(this_host.hostid) %-->/playlist.m3u8">Download the playlist</a>.
<p>
</div>
<div class="lane stack">
<!--% FOREACH hpr_show IN hpr_shows; %-->