diff --git a/templates/content-index.tpl.html b/templates/content-index.tpl.html index ca13f0e..63bd910 100644 --- a/templates/content-index.tpl.html +++ b/templates/content-index.tpl.html @@ -28,13 +28,18 @@ CASE eps.explicit WHEN 1 THEN \'Explicit\' ELSE \'Clean\' END AS explicit , eps.date, eps.license, eps.duration, eps.title, eps.summary, eps.tags, - eps.series, eps.notes, + eps.notes, hosts.local_image, hosts.hostid, - hosts.host, hosts.email -FROM eps INNER JOIN hosts ON eps.hostid = hosts.hostid -WHERE eps.date BETWEEN date(\'now\', \'-7 days\') AND date(\'now\') -ORDER BY date DESC ') + hosts.host, hosts.email, + miniseries.name AS series + FROM eps + INNER JOIN hosts ON eps.hostid = hosts.hostid + INNER JOIN miniseries ON eps.series = miniseries.id + WHERE eps.date < date(\'now\', \'+1 days\') + ORDER BY date DESC + LIMIT 10 + ') %-->