From 98c6658840eedd55bd6d8042f8a69c342b87cd71 Mon Sep 17 00:00:00 2001 From: Guy Martin Date: Thu, 15 Feb 2024 11:36:09 +0000 Subject: [PATCH] feat: add podcast:season and podcast:episode tags to rss feed --- app/Helpers/rss_helper.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/Helpers/rss_helper.php b/app/Helpers/rss_helper.php index bde1f11d..eabdcdba 100644 --- a/app/Helpers/rss_helper.php +++ b/app/Helpers/rss_helper.php @@ -338,6 +338,12 @@ if (! function_exists('get_rss_feed')) { $item->addChild('season', (string) $episode->season_number, $itunesNamespace); $item->addChild('episodeType', $episode->type, $itunesNamespace); + // add podcast namespace tags for season and episode + $episode->season_number && + $item->addChild('season', (string) $episode->season_number, $podcastNamespace); + $episode->number && + $item->addChild('episode', (string) $episode->number, $podcastNamespace); + // add link to episode comments as podcast-activity format $comments = $item->addChild('comments', null, $podcastNamespace); $comments->addAttribute('uri', url_to('episode-comments', $podcast->handle, $episode->slug));