2022-08-18 02:41:59 +00:00
|
|
|
<!--% USE DBI(constants.driver, constants.user, constants.password) %-->
|
|
|
|
<!--% query_hpr_feed = DBI.prepare('
|
2023-08-19 12:34:50 +00:00
|
|
|
SELECT
|
|
|
|
eps.id,
|
|
|
|
eps.explicit,
|
|
|
|
DATE_FORMAT(eps.date, \'%H:%i:%S %d:%m:%Y\') AS \'date\',
|
|
|
|
eps.license, eps.duration,
|
|
|
|
eps.title, eps.summary, eps.tags,
|
|
|
|
eps.notes,
|
|
|
|
hosts.local_image,
|
|
|
|
hosts.hostid,
|
|
|
|
hosts.host, hosts.email,
|
|
|
|
miniseries.name AS series, miniseries.id AS seriesid,
|
|
|
|
assets.size AS length
|
|
|
|
FROM eps
|
|
|
|
INNER JOIN hosts ON eps.hostid = hosts.hostid
|
|
|
|
INNER JOIN miniseries ON eps.series = miniseries.id
|
|
|
|
INNER JOIN assets ON eps.id = assets.episode_id
|
|
|
|
WHERE eps.date < UTC_DATE()
|
|
|
|
AND assets.extension = ?
|
|
|
|
ORDER BY eps.date DESC
|
2022-08-18 02:41:59 +00:00
|
|
|
')
|
|
|
|
%-->
|
2023-08-19 12:34:50 +00:00
|
|
|
<!--% feed_result = query_hpr_feed.execute(media_file_extension) %-->
|
2022-08-18 02:41:59 +00:00
|
|
|
|