From ae96d602a4a090cb693a518bf4d280d38f7c187c Mon Sep 17 00:00:00 2001 From: Roan Horning Date: Sat, 15 Nov 2025 11:59:41 -0500 Subject: [PATCH] Allow creation of m3u playlist for a host --- site.cfg | 6 ++++++ templates/ids-correspondent_m3u.tpl.html | 7 +++++++ templates/m3u-correspondent.tpl.m3u8 | 24 ++++++++++++++++++++++++ templates/m3u.tpl.m3u8 | 2 ++ 4 files changed, 39 insertions(+) create mode 100644 templates/ids-correspondent_m3u.tpl.html create mode 100644 templates/m3u-correspondent.tpl.m3u8 create mode 100644 templates/m3u.tpl.m3u8 diff --git a/site.cfg b/site.cfg index 438d048c..716770bc 100644 --- a/site.cfg +++ b/site.cfg @@ -171,3 +171,9 @@ media_file_extension: spx [comments] root_template: rss-comments.tpl.xml filename: comments.rss + +[correspondent_m3u] +root_template: m3u.tpl.m3u8 +content: m3u-correspondent.tpl.m3u8 +filename: correspondents/[id]/playlist.m3u8 +multipage: true diff --git a/templates/ids-correspondent_m3u.tpl.html b/templates/ids-correspondent_m3u.tpl.html new file mode 100644 index 00000000..af066813 --- /dev/null +++ b/templates/ids-correspondent_m3u.tpl.html @@ -0,0 +1,7 @@ + + +, + + diff --git a/templates/m3u-correspondent.tpl.m3u8 b/templates/m3u-correspondent.tpl.m3u8 new file mode 100644 index 00000000..5b093b15 --- /dev/null +++ b/templates/m3u-correspondent.tpl.m3u8 @@ -0,0 +1,24 @@ + + + + + + +#EXTINF: , - + + + + + + + + + + +#EXTINF: , - + + + + + + diff --git a/templates/m3u.tpl.m3u8 b/templates/m3u.tpl.m3u8 new file mode 100644 index 00000000..1c613896 --- /dev/null +++ b/templates/m3u.tpl.m3u8 @@ -0,0 +1,2 @@ +#EXTM3U +