<%# 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 VODs https://futureporn.net Dedication to the preservaton of lewdtuber history ${new Date().toUTCString()} https://validator.w3.org/feed/docs/rss2.html pocketpages 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} ${new Date(vod.get('streamDate')).toUTCString()}`; if (vod.get('notes')) { rss += ` `; } if (vod.get('thumbnail')) { rss += `${env('ORIGIN')}/api/files/vods/${vod.get('id')}/${vod.get('thumbnail')}` } rss += ` `; } rss += ` `; // Send the RSS response.html(200, rss); %>