From 8f6df0d78b7b5304e76c32c2f49fd399e2896d94 Mon Sep 17 00:00:00 2001 From: Chip Wasson Date: Wed, 11 Oct 2023 18:59:23 -0600 Subject: [PATCH] Update dinosaurwet title --- src/dinosaurwet/dinosaurwet.controller.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/dinosaurwet/dinosaurwet.controller.ts b/src/dinosaurwet/dinosaurwet.controller.ts index 66e355e..a13bc13 100644 --- a/src/dinosaurwet/dinosaurwet.controller.ts +++ b/src/dinosaurwet/dinosaurwet.controller.ts @@ -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)),