Update dinosaurwet title

This commit is contained in:
2023-10-11 18:59:23 -06:00
parent f3982335ff
commit 8f6df0d78b

View File

@@ -56,6 +56,7 @@ const episodes: Episode[] = episodeFiles.map((file, i) => {
});
const buildFeeds = (
title: string,
episodes: Episode[],
pubDateFn: (index: number) => Date = () => startDate,
) => {
@@ -79,7 +80,7 @@ const buildFeeds = (
},
},
{
title: 'Dinosaur Wet - All At Once',
title,
},
{
link: 'https://sanspantsradio.com',
@@ -141,7 +142,7 @@ export class DinosaurwetController {
@Get('')
getAllAtOnce(@Res() response: Response) {
response.header('Content-Type', 'application/xml');
const feed = buildFeeds(episodes);
const feed = buildFeeds('Dinosaur Wet - All At Once', episodes);
return response.send(feed);
}
@@ -149,6 +150,7 @@ export class DinosaurwetController {
getDaily(@Res() response: Response) {
response.header('Content-Type', 'application/xml');
const feed = buildFeeds(
'Dinosaur Wet - Daily',
episodes,
(index: number) =>
new Date(new Date(startDate).setDate(startDate.getDate() + index)),
@@ -160,6 +162,7 @@ export class DinosaurwetController {
getWeekly(@Res() response: Response) {
response.header('Content-Type', 'application/xml');
const feed = buildFeeds(
'Dinosaur Wet - Weekly',
episodes,
(index: number) =>
new Date(new Date(startDate).setDate(startDate.getDate() + index * 7)),