mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-12 08:47:40 -05:00
better description
This commit is contained in:
@@ -241,6 +241,7 @@ const savePodcast = (event, podcastUrl) => {
|
||||
}
|
||||
});
|
||||
podcast.len = totalTime;
|
||||
podcast.eventUrl = frontend_server + "/events/" + event._id;
|
||||
podcast.save();
|
||||
}
|
||||
|
||||
|
||||
@@ -11,6 +11,7 @@ var podcastSchema = mongoose.Schema({
|
||||
downloadUrl: String,
|
||||
systems: [String],
|
||||
numCalls: Number,
|
||||
eventUrl: String,
|
||||
len: Number
|
||||
},
|
||||
{
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user