<%# index.ejs — RSS Feed Generator (RSS 2.0) Expects: data.vods = [{ id, title, notes, thumbnail, streamDate }] %> <% response.header("Content-Type", "application/rss+xml") // Build RSS XML as a string let rss = ` Futureporn.net https://futureporn.net Dedication to the preservaton of lewdtuber history ${new Date().toUTCString()} https://validator.w3.org/feed/docs/rss2.html en Futureporn.net https://futureporn.net/images/futureporn-icon.png https://futureporn.net `; for (const vod of data.vods) { const url = `${env('ORIGIN')}/vods/${vod.id}`; rss += ` <![CDATA[${ ((vod?.get('expand')?.vtubers?.map(vt => vt.get('displayName')) || []).join(', ') || vod.get('streamDate')) }]]> ${url} ${url} ${vod.get('streamDate')}`; if (vod.notes) { rss += ` `; } if (vod.thumbnail) { rss += ` `; } rss += ` `; } rss += ` `; // Send the RSS response.html(200, rss); %>