diff --git a/backend/controllers/events.js b/backend/controllers/events.js index d433789..a7f2a29 100644 --- a/backend/controllers/events.js +++ b/backend/controllers/events.js @@ -241,6 +241,7 @@ const savePodcast = (event, podcastUrl) => { } }); podcast.len = totalTime; + podcast.eventUrl = frontend_server + "/events/" + event._id; podcast.save(); } diff --git a/backend/models/podcast.js b/backend/models/podcast.js index 5a2479a..b7c515b 100644 --- a/backend/models/podcast.js +++ b/backend/models/podcast.js @@ -11,6 +11,7 @@ var podcastSchema = mongoose.Schema({ downloadUrl: String, systems: [String], numCalls: Number, + eventUrl: String, len: Number }, { diff --git a/frontend/server/index.js b/frontend/server/index.js index 8b7d082..a69e870 100644 --- a/frontend/server/index.js +++ b/frontend/server/index.js @@ -137,6 +137,10 @@ async function getPodcast(req, res, next) { itunesImage: 'https://openmhz.com/podcast/cover.png' }); for (const podcast of podcasts) { + let description = podcast.description +"\n\nRadio Systems:\n"; + for (const system of podcast.systems) { + description = description + " - " + system + "\n" + } feed.addItem({ title: podcast.title, description: podcast.description, @@ -144,6 +148,7 @@ async function getPodcast(req, res, next) { url: podcast.downloadUrl, // link to the item }, author: 'OpenMHz', // optional - defaults to feed author property + url: podcast.eventUrl, date: podcast.startTime, // any format that js Date can parse. itunesAuthor: 'OpenMHz', itunesExplicit: false,