diff --git a/site.cfg b/site.cfg index 438d048..c87f764 100644 --- a/site.cfg +++ b/site.cfg @@ -171,3 +171,15 @@ 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 + +[series_episodes_m3u] +root_template: m3u.tpl.m3u8 +content: m3u-series_episodes.tpl.m3u8 +filename: series/[id].m3u8 +multipage: true diff --git a/templates/content-correspondent.tpl.html b/templates/content-correspondent.tpl.html index 9d3b867..10ca83a 100644 --- a/templates/content-correspondent.tpl.html +++ b/templates/content-correspondent.tpl.html @@ -29,9 +29,9 @@

+

Download the M3U playlist.

- -
+
diff --git a/templates/content-series_episode.tpl.html b/templates/content-series_episode.tpl.html index 557e14c..9a44d0c 100644 --- a/templates/content-series_episode.tpl.html +++ b/templates/content-series_episode.tpl.html @@ -13,6 +13,7 @@
  • Date of earliest show:
  • Date of latest show:
  • Series RSS feeds: ogg, spx, mp3
  • +
  • Download the M3U playlist
  • diff --git a/templates/ids-correspondent_m3u.tpl.html b/templates/ids-correspondent_m3u.tpl.html new file mode 100644 index 0000000..af06681 --- /dev/null +++ b/templates/ids-correspondent_m3u.tpl.html @@ -0,0 +1,7 @@ + + +, + + diff --git a/templates/ids-series_episodes_m3u.tpl.html b/templates/ids-series_episodes_m3u.tpl.html new file mode 100644 index 0000000..e3f89d9 --- /dev/null +++ b/templates/ids-series_episodes_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 0000000..5b093b1 --- /dev/null +++ b/templates/m3u-correspondent.tpl.m3u8 @@ -0,0 +1,24 @@ + + + + + + +#EXTINF: , - + + + + + + + + + + +#EXTINF: , - + + + + + + diff --git a/templates/m3u-series_episodes.tpl.m3u8 b/templates/m3u-series_episodes.tpl.m3u8 new file mode 100644 index 0000000..4bbd429 --- /dev/null +++ b/templates/m3u-series_episodes.tpl.m3u8 @@ -0,0 +1,13 @@ + + + + + + +#EXTINF: , - + + + + + + diff --git a/templates/m3u.tpl.m3u8 b/templates/m3u.tpl.m3u8 new file mode 100644 index 0000000..1c61389 --- /dev/null +++ b/templates/m3u.tpl.m3u8 @@ -0,0 +1,2 @@ +#EXTM3U +