mmcdole / gofeed

Parse RSS, Atom and JSON feeds in Go
MIT License
2.56k stars 208 forks source link

ITunes Summary should be store in the Description field of the feed if Description is empty #208

Closed rdelaage closed 1 year ago

rdelaage commented 1 year ago

Expected behavior

A podcast feed without description tag but with itunes:summary should have the content of the second tag in the Description feed.

Actual behavior

A feed without description tag but with a itunes:summary tag results in an object with an empty description.

Steps to reproduce the behavior

package main

import (
    "fmt"

    "github.com/mmcdole/gofeed"
)

func main() {
    parser := gofeed.NewParser()
    feed, _ := parser.ParseURL("https://feeds.radiokawa.com/podcast_velvet-video-burger.xml")
    fmt.Printf("Feed description: %s\nITunes summary: %s\n", feed.Description, feed.ITunesExt.Summary)
}

Note: Please include any links to problem feeds, or the feed content itself!