More fixes for the Podcast RSS
This commit is contained in:
parent
9af0f1f2e0
commit
75d1f5470d
1 changed files with 6 additions and 8 deletions
|
|
@ -166,6 +166,8 @@ export const generatePodcastFeeds = async () => {
|
||||||
|
|
||||||
itunesImage: `${siteURL}` + series.attributes.Logo.data.attributes.url,
|
itunesImage: `${siteURL}` + series.attributes.Logo.data.attributes.url,
|
||||||
|
|
||||||
|
language: "English",
|
||||||
|
|
||||||
favicon: `${siteURL}/public/images/favicon.png`,
|
favicon: `${siteURL}/public/images/favicon.png`,
|
||||||
|
|
||||||
copyright: `All rights reserved ${date.getFullYear()}, James Purser`,
|
copyright: `All rights reserved ${date.getFullYear()}, James Purser`,
|
||||||
|
|
@ -174,12 +176,7 @@ export const generatePodcastFeeds = async () => {
|
||||||
|
|
||||||
generator: "Feed for Node.js",
|
generator: "Feed for Node.js",
|
||||||
|
|
||||||
feedLinks: {
|
itunesCategory: [{text: series.attributes.iTunesCategory}]
|
||||||
|
|
||||||
rss2: `${siteURL}/feeds/${series.attributes.Slug}.xml`,
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log(feed)
|
console.log(feed)
|
||||||
|
|
@ -192,10 +189,11 @@ export const generatePodcastFeeds = async () => {
|
||||||
|
|
||||||
const media_url = `${siteURL}${episode.attributes.Audio_MP3.data.attributes.url}`
|
const media_url = `${siteURL}${episode.attributes.Audio_MP3.data.attributes.url}`
|
||||||
|
|
||||||
|
console.log(episode.attributes.Audio_MP3.data.attributes)
|
||||||
const media = {
|
const media = {
|
||||||
url: media_url,
|
url: media_url,
|
||||||
type: episode.attributes.Audio_MP3.data.attributes.mime,
|
type: episode.attributes.Audio_MP3.data.attributes.mime,
|
||||||
length: 0,
|
size: episode.attributes.Audio_MP3.data.attributes.size,
|
||||||
title: episode.attributes.Audio_MP3.data.attributes.name,
|
title: episode.attributes.Audio_MP3.data.attributes.name,
|
||||||
duration: 0,
|
duration: 0,
|
||||||
}
|
}
|
||||||
|
|
@ -206,7 +204,7 @@ export const generatePodcastFeeds = async () => {
|
||||||
|
|
||||||
id: url,
|
id: url,
|
||||||
|
|
||||||
link: url,
|
url: url,
|
||||||
|
|
||||||
description: episode.attributes.Description,
|
description: episode.attributes.Description,
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue