Skip to content

Commit

Permalink
fix generator
Browse files Browse the repository at this point in the history
  • Loading branch information
VovaStelmashchuk committed Sep 14, 2024
1 parent 9f9937a commit 36282d3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@ import dotenv from 'dotenv';

dotenv.config();

const startUrl = process.env.S3_START_URL;
const host = process.env.BASE_URL;
const rssFileName = process.env.PODCAST_RSS_FILE_NAME;

export async function updateRss(showSlug) {
const podcasts = await getPodcastForRss(showSlug);
const showInfo = await getShowBySlug(showSlug);

const logoUrl = buildObjectURL(showInfo.showLogoUrl);
const logoUrl = `${startUrl}${showInfo.showLogoUrl}`;
const description = showInfo.about;

const author = showInfo.authors;
Expand All @@ -25,7 +26,7 @@ export async function updateRss(showSlug) {
const feed = new Podcast({
title: showInfo.showName,
description: description,
feedUrl: buildObjectURL(`${showSlug}/${rssFileName}`),
feedUrl: `${startUrl}/${showSlug}/${rssFileName}`,
siteUrl: host,
webMaster: host,
generator: 'YourPod',
Expand Down

0 comments on commit 36282d3

Please sign in to comment.