mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-17 11:17:45 -05:00
better description
This commit is contained in:
@@ -241,6 +241,7 @@ const savePodcast = (event, podcastUrl) => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
podcast.len = totalTime;
|
podcast.len = totalTime;
|
||||||
|
podcast.eventUrl = frontend_server + "/events/" + event._id;
|
||||||
podcast.save();
|
podcast.save();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ var podcastSchema = mongoose.Schema({
|
|||||||
downloadUrl: String,
|
downloadUrl: String,
|
||||||
systems: [String],
|
systems: [String],
|
||||||
numCalls: Number,
|
numCalls: Number,
|
||||||
|
eventUrl: String,
|
||||||
len: Number
|
len: Number
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -137,6 +137,10 @@ async function getPodcast(req, res, next) {
|
|||||||
itunesImage: 'https://openmhz.com/podcast/cover.png'
|
itunesImage: 'https://openmhz.com/podcast/cover.png'
|
||||||
});
|
});
|
||||||
for (const podcast of podcasts) {
|
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({
|
feed.addItem({
|
||||||
title: podcast.title,
|
title: podcast.title,
|
||||||
description: podcast.description,
|
description: podcast.description,
|
||||||
@@ -144,6 +148,7 @@ async function getPodcast(req, res, next) {
|
|||||||
url: podcast.downloadUrl, // link to the item
|
url: podcast.downloadUrl, // link to the item
|
||||||
},
|
},
|
||||||
author: 'OpenMHz', // optional - defaults to feed author property
|
author: 'OpenMHz', // optional - defaults to feed author property
|
||||||
|
url: podcast.eventUrl,
|
||||||
date: podcast.startTime, // any format that js Date can parse.
|
date: podcast.startTime, // any format that js Date can parse.
|
||||||
itunesAuthor: 'OpenMHz',
|
itunesAuthor: 'OpenMHz',
|
||||||
itunesExplicit: false,
|
itunesExplicit: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user