forked from rho_n/hpr_generator
29 lines
825 B
HTML
29 lines
825 B
HTML
|
<!--% query_series_sql = 'SELECT miniseries.id, miniseries.name,
|
||
|
miniseries.description,
|
||
|
miniseries.private, miniseries.image, miniseries.valid,
|
||
|
ep.number_of_episodes, ep.latest_show, ep.earliest_show
|
||
|
FROM miniseries
|
||
|
INNER JOIN
|
||
|
(SELECT series,
|
||
|
COUNT(eps.id) AS number_of_episodes,
|
||
|
MAX(eps.date) AS latest_show,
|
||
|
MIN(eps.date) AS earliest_show
|
||
|
FROM eps
|
||
|
WHERE eps.date < date(\'now\', \'+1 days\')
|
||
|
GROUP BY series) AS ep ON ep.series = miniseries.id
|
||
|
WHERE miniseries.id = ?
|
||
|
ORDER BY name'
|
||
|
%-->
|
||
|
<!--% query_shows_sql = 'SELECT
|
||
|
id, date, title,
|
||
|
duration, summary, notes,
|
||
|
explicit, eps.license, tags,
|
||
|
hosts.host, hosts.hostid
|
||
|
FROM eps
|
||
|
INNER JOIN hosts
|
||
|
ON eps.hostid = hosts.hostid
|
||
|
WHERE series = ? AND eps.date < date(\'now\', \'+1 days\')
|
||
|
ORDER BY eps.id DESC
|
||
|
'
|
||
|
%-->
|