<%# index.ejs — ATOM Feed Generator Expects: data.vods = [{ id, title, notes, thumbnail, streamDate }] %> <%= response.header("Content-Type", "application/atom+xml"); // Build Atom XML as a string let atom = ` Futureporn.net ${new Date().toISOString()} <%= env('ORIGIN') %> CJ_Clippy cj@futureporn.net `; for (const vod of data.vods) { const url = `${env('ORIGIN')}/vods/${vod.id}`; const entryTitle = ((vod?.get('expand')?.vtubers?.map(vt => vt.get('displayName')) || []) .join(', ') || vod.get('streamDate')); atom += ` <![CDATA[${entryTitle}]]> ${url} ${vod.get('streamDate')}`; if (vod.get('notes')) { atom += ` `; } if (vod.get('thumbnail')) { atom += ` ]]> `; } atom += ` `; } atom += ` `; // Send the Atom feed response.html(200, '

HELLO

'); %>