use website URL if exists for RSS

This commit is contained in:
Thomas Zarebczan 2021-08-10 12:56:23 -04:00 committed by GitHub
parent dcac5ebcc9
commit 7312badc18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -226,7 +226,7 @@ function generateFeed(feedLink, channelClaim, claimsInChannel) {
title: channelTitle + ' on ' + SITE_NAME, title: channelTitle + ' on ' + SITE_NAME,
description: getFormattedDescription(channelClaim), description: getFormattedDescription(channelClaim),
feed_url: feedLink, feed_url: feedLink,
site_url: URL, site_url: (channelClaim.value && channelClaim.value.website_url) || URL,
image_url: (channelClaim.value && channelClaim.value.thumbnail && channelClaim.value.thumbnail.url) || undefined, image_url: (channelClaim.value && channelClaim.value.thumbnail && channelClaim.value.thumbnail.url) || undefined,
language: getLanguageValue(channelClaim), language: getLanguageValue(channelClaim),
custom_namespaces: { itunes: 'http://www.itunes.com/dtds/podcast-1.0.dtd' }, custom_namespaces: { itunes: 'http://www.itunes.com/dtds/podcast-1.0.dtd' },