mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-03 14:59:44 +02:00
feat: add podcast:season and podcast:episode tags to rss feed
This commit is contained in:
parent
d580369235
commit
98c6658840
1 changed files with 6 additions and 0 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue