Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Podcast feed generator episode image feature #119

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

Goosse
Copy link
Contributor

@Goosse Goosse commented Dec 18, 2021

This pull request adds the functionality of using an item's imagePath to include an image unique to that episode in the RSS feed.

Copy link
Owner

@JohnSundell JohnSundell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice, thanks a lot @Goosse (and sorry for taking so long to provide any feedback on this!). I just made a few stylistic changes to the code, and will merge once CI passes 👍

@JohnSundell
Copy link
Owner

@Goosse Could you perhaps merge the latest master into this PR branch, to see if that fixes the CI issues?

@Goosse
Copy link
Contributor Author

Goosse commented Apr 24, 2022

Looks like the merge fixed the CI issues

@@ -107,7 +110,7 @@ private extension PodcastFeedGenerator {
.summary(item.description),
.explicit(metadata?.isExplicit ?? false),
.duration(audioDuration),
.image(config.imageURL),
.image(imageURL ?? config.imageURL),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it be better to exclude the image tag altogether when the item has no specific image?

As far as I've been able to tell, all clients will fall back to the main <itunes:image> at the channel level when the episode has no custom artwork. For shows with lots of episodes, having these duplicate tags in the feed add up and make the feed larger than it needs to be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants