Skip to content

Commit 6d7d671

Browse files
committed
allow to have remote items at the channel level
1 parent 48f0391 commit 6d7d671

File tree

1 file changed

+29
-28
lines changed

1 file changed

+29
-28
lines changed

types.go

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -51,34 +51,35 @@ func (isPresent *NSBool) MarshalXMLAttr(name xml.Name) (xml.Attr, error) {
5151

5252
// Channel represents the podcast's feed.
5353
type Channel struct {
54-
XMLName xml.Name `xml:"channel"`
55-
Copyright *string `xml:"copyright"`
56-
Description *Description `xml:"description"`
57-
Generator *string `xml:"generator"`
58-
Language *string `xml:"language"`
59-
LastBuildDate *Date `xml:"lastBuildDate"`
60-
Link *string `xml:"link"`
61-
Title *string `xml:"title"`
62-
AtomLink *AtomLink `xml:"atom:link"`
63-
ContentEncoded *ContentEncoded
64-
ITunesAuthor *string `xml:"itunes:author"`
65-
ITunesCategories []ITunesCategory
66-
ITunesExplicit *bool `xml:"itunes:explicit"`
67-
ITunesImage *ITunesImage
68-
ITunesNewFeedURL *string `xml:"itunes:new-feed-url"`
69-
ITunesOwner *ITunesOwner
70-
ITunesType *string `xml:"itunes:type"`
71-
PodcastFundings []PodcastFunding
72-
PodcastGUID *PodcastGUID `xml:"podcast:guid"`
73-
PodcastLocation *PodcastLocation
74-
PodcastLocked *PodcastLocked
75-
PodcastMedium *PodcastMedium `xml:"podcast:medium"`
76-
PodcastPersons []PodcastPerson
77-
PodcastPodping *PodcastPodping
78-
PodcastTXTs []PodcastTXT
79-
PodcastTrailers []PodcastTrailer
80-
PodcastValue *PodcastValue
81-
Items []Item
54+
XMLName xml.Name `xml:"channel"`
55+
Copyright *string `xml:"copyright"`
56+
Description *Description `xml:"description"`
57+
Generator *string `xml:"generator"`
58+
Language *string `xml:"language"`
59+
LastBuildDate *Date `xml:"lastBuildDate"`
60+
Link *string `xml:"link"`
61+
Title *string `xml:"title"`
62+
AtomLink *AtomLink `xml:"atom:link"`
63+
ContentEncoded *ContentEncoded
64+
ITunesAuthor *string `xml:"itunes:author"`
65+
ITunesCategories []ITunesCategory
66+
ITunesExplicit *bool `xml:"itunes:explicit"`
67+
ITunesImage *ITunesImage
68+
ITunesNewFeedURL *string `xml:"itunes:new-feed-url"`
69+
ITunesOwner *ITunesOwner
70+
ITunesType *string `xml:"itunes:type"`
71+
PodcastFundings []PodcastFunding
72+
PodcastGUID *PodcastGUID `xml:"podcast:guid"`
73+
PodcastLocation *PodcastLocation
74+
PodcastLocked *PodcastLocked
75+
PodcastMedium *PodcastMedium `xml:"podcast:medium"`
76+
PodcastPersons []PodcastPerson
77+
PodcastPodping *PodcastPodping
78+
PodcastRemoteItems []PodcastRemoteItem
79+
PodcastTXTs []PodcastTXT
80+
PodcastTrailers []PodcastTrailer
81+
PodcastValue *PodcastValue
82+
Items []Item
8283
}
8384

8485
// Item represents episode of a podcast.

0 commit comments

Comments
 (0)