fix: Generate feeds for series in addition to podcast #19

Merged
timharek merged 4 commits from bugfix-allow-series into main 2024-04-02 14:27:00 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit d16829f45e - Show all commits

View File

@ -30,7 +30,7 @@ function toItemTag(seriesId: string, episode: OriginalEpisode) {
async function buildFeed(seriesId: string) {
const serie = await nrkRadio.getSerieData(seriesId);
const imageUrl = serie.squareImage.at(-1)?.url;
const imageUrl = serie.squareImage?.at(-1)?.url ?? "";
const linkValue = `https://radio.nrk.no/podkast/${serie.id}`;
// Quickly adapted from https://raw.githubusercontent.com/olaven/paperpod/1cde9abd3174b26e126aa74fc5a3b63fd078c0fd/packages/converter/src/rss.ts