Skip to content
Snippets Groups Projects
Commit 98c66588 authored by Guy Martin (Dwev)'s avatar Guy Martin (Dwev) :flag_dk: Committed by Yassine Doghri
Browse files

feat: add podcast:season and podcast:episode tags to rss feed

parent d5803692
No related branches found
No related tags found
1 merge request!322feat: add podcast:season and podcast:episode tags to rss feed
Pipeline #15861 passed
Pipeline: Castopod

#15862

    ......@@ -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));
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment