forked from HPR/hpr_generator
Allow creation of m3u playlist for a series
This commit is contained in:
6
site.cfg
6
site.cfg
@@ -177,3 +177,9 @@ 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
|
||||
|
||||
7
templates/ids-series_episodes_m3u.tpl.html
Normal file
7
templates/ids-series_episodes_m3u.tpl.html
Normal file
@@ -0,0 +1,7 @@
|
||||
<!--% USE DBI(constants.driver, constants.user, constants.password) %-->
|
||||
<!--% FOREACH series IN DBI.query(
|
||||
'select s.id from miniseries as s'
|
||||
) %-->
|
||||
,<!--% series.id %-->
|
||||
<!--% END %-->
|
||||
|
||||
13
templates/m3u-series_episodes.tpl.m3u8
Normal file
13
templates/m3u-series_episodes.tpl.m3u8
Normal file
@@ -0,0 +1,13 @@
|
||||
<!--% PROCESS 'shared-utils.tpl.html' %-->
|
||||
<!--% PROCESS 'queries-series_episodes.tpl.html' %-->
|
||||
<!--% USE DBI(constants.driver) %-->
|
||||
<!--% results_hpr_shows = DBI.prepare(query_shows_sql) %-->
|
||||
<!--% hpr_shows = results_hpr_shows.execute(id); %-->
|
||||
<!--% FOREACH hpr_show IN hpr_shows; %-->
|
||||
#EXTINF: <!--% hpr_show.duration %-->,<!--% hpr_show.host %--> - <!--% hpr_show.title %-->
|
||||
|
||||
|
||||
<!--% media_path(hpr_show.id, 'hpr', 'mp3', baseurl, media_baseurl) %-->
|
||||
|
||||
|
||||
<!--% END %-->
|
||||
Reference in New Issue
Block a user