Documentation
¶
Overview ¶
Package feedcast provides a comprehensive toolkit for generating RSS podcast feeds that comply with Apple Podcast specifications and modern podcast standards.
The package enables creation of podcast RSS feeds with full support for:
- Apple Podcast required and optional tags
- Episode metadata (titles, descriptions, artwork, transcripts)
- Podcast categories and subcategories
- Serial and episodic show types
- Rich content with HTML and CDATA support
- Comprehensive validation against Apple's requirements
Basic Usage ¶
Creating a simple podcast feed:
package main
import (
"os"
"time"
"github.com/ofstudio/voxify/pkg/feedcast"
)
func main() {
// Create channel data
channelData := feedcast.FeedData{
Title: "My Tech Podcast",
Description: "Weekly discussions about technology trends and innovations",
Image: "https://example.com/podcast-artwork.jpg",
Language: "en",
Explicit: feedcast.ExplicitFalse,
Categories: []feedcast.Category{
feedcast.NewCategory("Technology"),
feedcast.NewCategory("Business", "Entrepreneurship"),
},
}
// Create feed with optional metadata
feed := feedcast.NewFeed(channelData).
WithAuthor("Tech Media Network").
WithLink("https://mytechpodcast.com").
WithItunesType(feedcast.TypeEpisodic).
WithItunesOwner("John Doe", "john@example.com")
// Add an episode
episodeData := feedcast.ItemData{
Title: "The Future of AI",
Guid: "episode-001",
Enclosure: feedcast.Enclosure{
URL: "https://example.com/episodes/episode-001.mp3",
Length: 25600000, // bytes
Type: feedcast.Mp3,
},
}
episode := feedcast.NewItem(episodeData).
WithPubDate(time.Now()).
WithDescription("Deep dive into artificial intelligence trends").
WithItunesDuration(3600). // 1 hour in seconds
WithItunesEpisode(1).
WithItunesSeason(1).
WithPodcastTranscript("https://example.com/transcripts/001.vtt", feedcast.TranscriptVtt)
feed.AddItem(episode)
// Generate RSS XML
if err := feed.Validate(); err != nil {
panic(err)
}
feed.Encode(os.Stdout)
}
Validation and Compliance ¶
The package automatically validates feeds against Apple Podcast requirements:
- Required channel tags (title, description, image, language, explicit, categories)
- Required episode tags (title, Guid, enclosure)
- Proper MIME types for audio/video files
- Valid category selections
- Correct namespace declarations and RSS structure
References ¶
This package implements specifications from:
- Apple Podcast Requirements: https://podcasters.apple.com/support/823-podcast-requirements
- Apple Podcast Connect Guide: https://help.apple.com/itc/podcasts_connect/#/itcb54353390
- The "podcast" Namespace: https://github.com/Podcastindex-org/podcast-namespace
Index ¶
- type Category
- type Enclosure
- type EnclosureType
- type Explicit
- type Feed
- func (f *Feed) AddItem(item *Item)
- func (f *Feed) Encode(w io.Writer) error
- func (f *Feed) Validate() error
- func (f *Feed) WithAuthor(name string) *Feed
- func (f *Feed) WithCopyright(copyright string) *Feed
- func (f *Feed) WithGenerator(generator string) *Feed
- func (f *Feed) WithItunesBlock(block ItunesBlock) *Feed
- func (f *Feed) WithItunesComplete(complete ItunesComplete) *Feed
- func (f *Feed) WithItunesKeywords(keywords string) *Feed
- func (f *Feed) WithItunesNewFeedURL(newFeedURL string) *Feed
- func (f *Feed) WithItunesOwner(name, email string) *Feed
- func (f *Feed) WithItunesSummary(summary string) *Feed
- func (f *Feed) WithItunesTitle(title string) *Feed
- func (f *Feed) WithItunesType(showType ItunesType) *Feed
- func (f *Feed) WithLastBuildDate(lastBuildDate time.Time) *Feed
- func (f *Feed) WithLink(link string) *Feed
- func (f *Feed) WithPubDate(pubDate time.Time) *Feed
- type FeedData
- type Item
- func (i *Item) Validate() error
- func (i *Item) WithDescription(description string) *Item
- func (i *Item) WithItunesAuthor(author string) *Item
- func (i *Item) WithItunesBlock(block ItunesBlock) *Item
- func (i *Item) WithItunesDuration(duration int64) *Item
- func (i *Item) WithItunesEpisode(episode int) *Item
- func (i *Item) WithItunesEpisodeType(episodeType ItunesEpisodeType) *Item
- func (i *Item) WithItunesExplicit(explicit Explicit) *Item
- func (i *Item) WithItunesImage(href string) *Item
- func (i *Item) WithItunesSeason(season int) *Item
- func (i *Item) WithItunesSummary(summary string) *Item
- func (i *Item) WithItunesTitle(title string) *Item
- func (i *Item) WithLink(link string) *Item
- func (i *Item) WithPodcastTranscript(url string, transcriptType PodcastTranscriptType) *Item
- func (i *Item) WithPubDate(pubDate time.Time) *Item
- type ItemData
- type ItunesBlock
- type ItunesComplete
- type ItunesEpisodeType
- type ItunesType
- type PodcastTranscriptType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Category ¶
Category represents a podcast category with optional subcategories.
Select the category that best reflects the content of your show. If available, you can also define a subcategory. Although you can specify more than one category and subcategory in your RSS feed, Apple Podcasts only recognizes the first category and subcategory.
When specifying categories and subcategories, be sure to properly escape ampersands. For example:
Single category:
<itunes:category text="History" />
Category with ampersand:
<itunes:category text="Kids & Family" />
Category with subcategory:
<itunes:category text="Society & Culture">
<itunes:category text="Documentary" />
</itunes:category>
Multiple categories:
<itunes:category text="Society & Culture">
<itunes:category text="Documentary" />
</itunes:category>
<itunes:category text="Health">
<itunes:category text="Mental Health" />
</itunes:category>
As of September 2025, the valid categories and subcategories are:
Arts Books Design Fashion & Beauty Food Performing Arts Visual Arts Business Careers Entrepreneurship Investing Management Marketing Non-Profit Comedy Comedy Interviews Improv Stand-Up Education Courses How To Language Learning Self-Improvement Fiction Comedy Fiction Drama Science Fiction Government History Health & Fitness Alternative Health Fitness Medicine Mental Health Nutrition Sexuality Kids & Family Education for Kids Parenting Pets & Animals Stories for Kids Leisure Animation & Manga Automotive Aviation Crafts Games Hobbies Home & Garden Video Games Music Music Commentary Music History Music Interviews News Business News Daily News Entertainment News News Commentary Politics Sports News Tech News Religion & Spirituality Buddhism Christianity Hinduism Islam Judaism Religion Spirituality Science Astronomy Chemistry Earth Sciences Life Sciences Mathematics Natural Sciences Nature Physics Social Sciences Society & Culture Documentary Personal Journals Philosophy Places & Travel Relationships Sports Baseball Basketball Cricket Fantasy Sports Football Golf Hockey Rugby Running Soccer Swimming Tennis Volleyball Wilderness Wrestling Technology True Crime TV & Film After Shows Film History Film Interviews Film Reviews TV Reviews
See Apple Podcast categories: https://podcasters.apple.com/support/1691-apple-podcasts-categories
func NewCategory ¶
NewCategory creates a new Category with optional subcategories.
type Enclosure ¶
type Enclosure struct {
// The URL attribute points to your podcast media file.
// Specify the full file extension within the URL attribute.
// This determines whether or not content appears in the podcast directory.
// Supported file formats include M4A, MP3, MOV, MP4, M4V, and PDF.
URL string
// The Length attribute is the file size in bytes.
Length int64
// The Type attribute provides the correct category
// for the type of file you are using.
// See EnclosureType for supported values.
Type EnclosureType
}
Enclosure holds episode content, file size, and file type information.
- URL. The URL attribute points to your podcast media file. Specify the full file extension within the URL attribute. This determines whether or not content appears in the podcast directory. Supported file formats include M4A, MP3, MOV, MP4, M4V, and PDF.
- Length. The length attribute is the file size in bytes.
- Type. The type attribute provides the correct category for the type of file you are using. See EnclosureType for supported values.
func NewEnclosure ¶
func NewEnclosure(url string, length int64, enclosureType EnclosureType) Enclosure
NewEnclosure creates a new Enclosure with the given parameters:
- The URL attribute points to your podcast media file. Specify the full file extension within the URL attribute. This determines whether or not content appears in the podcast directory. Supported file formats include M4A, MP3, MOV, MP4, M4V, and PDF.
- The length attribute is the file size in bytes.
- The type attribute provides the correct category for the type of file you are using. See EnclosureType for supported values.
type EnclosureType ¶
type EnclosureType string
EnclosureType provides the correct category for the type of file you are using. The type values for the supported file formats are:
- M4a for audio/x-m4a
- Mp3 for audio/mpeg
- Mov for video/quicktime
- Mp4 for video/mp4
- M4v for video/x-m4v
- Pdf for application/pdf
const ( M4a EnclosureType = "audio/x-m4a" Mp3 EnclosureType = "audio/mpeg" Mov EnclosureType = "video/quicktime" Mp4 EnclosureType = "video/mp4" M4v EnclosureType = "video/x-m4v" Pdf EnclosureType = "application/pdf." )
type Explicit ¶
type Explicit string
Explicit is the parental advisory information. The explicit value can be one of the following:
- ExplicitTrue. If you specify true, indicating the presence of explicit content, Apple Podcasts displays an Explicit parental advisory graphic for your podcast. Podcasts containing explicit material aren’t available in some Apple Podcasts territories.
- ExplicitFalse. If you specify false, indicating that your podcast doesn’t contain explicit language or adult content, Apple Podcasts displays a Clean parental advisory graphic for your podcast.
type Feed ¶
type Feed struct {
// contains filtered or unexported fields
}
Feed represents an RSS podcast feed. It contains the channel information and a list of items (episodes).
func NewFeed ¶
NewFeed creates a new Feed instance with the provided channel data and categories. It initializes the feed with minimum required channel tags as per Apple Podcasts specifications.
func (*Feed) Validate ¶
Validate checks if the feed has the minimum required tags as per Apple Podcasts specifications. It returns an error if any required tag is missing or invalid.
See https://help.apple.com/itc/podcasts_connect/#/itcb54353390
func (*Feed) WithAuthor ¶
WithAuthor sets the <itunes:author> tag of the feed. Author is the group responsible for creating the show.
Show author most often refers to the parent company or network of a podcast, but it can also be used to identify the host(s) if none exists.
Author information is especially useful if a company or organization publishes multiple podcasts.
func (*Feed) WithCopyright ¶
WithCopyright sets the <copyright> tag of the feed. If your show is copyrighted you should use this tag.
func (*Feed) WithGenerator ¶
WithGenerator sets the <generator> tag of the feed. This tag is typically used to identify the software that generated the feed. Hosting providers use this tag to identify themselves as the creator of an RSS feed.
func (*Feed) WithItunesBlock ¶
func (f *Feed) WithItunesBlock(block ItunesBlock) *Feed
WithItunesBlock sets the <itunes:block> tag of the feed. Use this tag if you want to block your podcast from appearing in Apple Podcasts. See ItunesBlock for possible values.
func (*Feed) WithItunesComplete ¶
func (f *Feed) WithItunesComplete(complete ItunesComplete) *Feed
WithItunesComplete sets the <itunes:complete> tag of the feed. Use this tag if your podcast is complete and no new episodes will be added. See ItunesComplete for possible values.
func (*Feed) WithItunesKeywords ¶
WithItunesKeywords sets the <itunes:keywords> tag of the feed. This tag is a comma-separated list of keywords that describe your podcast. Keywords help users find your podcast when they search in Apple Podcasts.
func (*Feed) WithItunesNewFeedURL ¶
WithItunesNewFeedURL sets the <itunes:new-feed-url> tag of the feed. Use this tag if you are changing the URL of your podcast feed. This tag should contain the new URL of your podcast feed.
You should maintain your old feed until you have migrated your existing followers. Learn how to update your podcast RSS feed URL: https://podcasters.apple.com/support/change-the-rss-feed-url
Note: The <itunes:new-feed-url> tag reports new feed URLs to Apple Podcasts and isn’t displayed in Apple Podcasts.
func (*Feed) WithItunesOwner ¶
WithItunesOwner sets the <itunes:owner> tag of the feed. This tag contains information about the owner of the podcast, including name and email.
func (*Feed) WithItunesSummary ¶
WithItunesSummary sets the <itunes:summary> tag of the feed. This tag is similar to the <description> tag but is specific to Apple Podcasts. It provides a summary of the podcast show.
func (*Feed) WithItunesTitle ¶
WithItunesTitle sets the <itunes:title> tag specific for Apple Podcasts.
<itunes:title> is a string containing a clear concise name of your show on Apple Podcasts. Do not include episode or season number in the title. There are dedicated tags for that information. See WithItunesEpisode and WithItunesSeason.
func (*Feed) WithItunesType ¶
func (f *Feed) WithItunesType(showType ItunesType) *Feed
WithItunesType sets the <itunes:type> tag of type of show. If your show is Serial you must use this tag. See ItunesType for possible values.
func (*Feed) WithLastBuildDate ¶
WithLastBuildDate sets the <lastBuildDate> tag of the feed. It indicates the last time the content of the feed was modified.
The date should be in RFC 2822 format (e.g., "Sat, 01 Apr 2023 19:00:00 GMT") which is the same as time.RFC1123Z in Go.
func (*Feed) WithLink ¶
WithLink sets the <link> tag of the feed of the website associated with a podcast. Use the full URL.
Typically, a home page for a podcast or a dedicated portion of a larger website.
func (*Feed) WithPubDate ¶
WithPubDate sets the <pubDate> tag of the feed. It indicates the publication date and time for the content of the feed.
The value for this tag is typically the publication date of the most recent episode in the feed.
The date should be in RFC 2822 format (e.g., "Sat, 01 Apr 2023 19:00:00 GMT") which is the same as time.RFC1123Z in Go.
type FeedData ¶
type FeedData struct {
// The show title
Title string
// The show description. Where description is text containing
// one or more sentences describing your podcast to potential listeners.
// The maximum amount of text allowed for this tag is 4000 bytes.
Description string
// The artwork for the show. Specify your show artwork by providing a URL linking to it.
// Depending on their device, subscribers see your podcast artwork in varying sizes.
// Therefore, make sure your design is effective at both its original size and at thumbnail size.
// You should include a show title, brand, or source name as part of your podcast artwork.
// Here are additional marketing best practices.
// For examples of podcast artwork, see the Top Podcasts chart.
// To avoid technical issues when you update your podcast artwork, be sure to:
// - Change the artwork file name and URL at the same time
// - Make sure the file type in the URL matches the actual file type of the image file.
// - Verify the web server hosting your artwork allows HTTP head requests including Last Modified.
//
// Artwork must be a minimum size of 1400 x 1400 pixels and a maximum size of 3000 x 3000 pixels,
// in JPEG or PNG format, 72 dpi, with appropriate file extensions (.jpg, .png), and in the RGB colorspace.
// Confirm your art does not contain an Alpha Channel.
// These requirements are different from the standard RSS image tag specifications.
Image string
// The language spoken on the show.
// Because Apple Podcasts is available in territories around the world,
// it is critical to specify the language of a podcast.
// Apple Podcasts only supports values from the ISO 639 list.
//
// https://www.loc.gov/standards/iso639-2/php/code_list.php
//
// Invalid language codes will cause your feed to fail Apple validation.
Language string
// The parental advisory information.
// The explicit value can be one of the following:
// - ExplicitTrue. If you specify true, indicating the presence of explicit content,
// Apple Podcasts displays an Explicit parental advisory graphic for your podcast.
// Podcasts containing explicit material aren’t available in some Apple Podcasts territories.
// - ExplicitFalse. If you specify false, indicating that your podcast doesn’t contain
// explicit language or adult content, Apple Podcasts displays a Clean parental advisory graphic
// for your podcast.
Explicit Explicit
// The podcast categories. At least one category is required.
// See Category for possible values.
Categories []Category
}
FeedData holds the data for the <channel> element in the RSS feed. It includes the minimal set of required tags as per Apple Podcasts specifications.
type Item ¶
type Item struct {
// contains filtered or unexported fields
}
Item represents a podcast episode in the RSS feed.
func NewItem ¶
NewItem creates a new Item with the minimal required data as per Apple Podcasts specifications.
func (*Item) Validate ¶
Validate checks if the item has the minimum required tags as per Apple Podcasts specifications. It returns an error if any required tag is missing or invalid.
See https://help.apple.com/itc/podcasts_connect/#/itcb54353390
func (*Item) WithDescription ¶
WithDescription sets the <description> tag containing one or more sentences describing your episode to potential listeners. You can specify up to 10,000 characters. You can use rich text formatting and some HTML (<p>, <ol>, <ul>, <li>, <a>) if wrapped in the <CDATA> tag.
func (*Item) WithItunesAuthor ¶
WithItunesAuthor sets the <itunes:author> tag containing the author of the episode. If the episode has a different author than the podcast author, use this tag to specify the episode author.
func (*Item) WithItunesBlock ¶
func (i *Item) WithItunesBlock(block ItunesBlock) *Item
WithItunesBlock sets the <itunes:block> tag for the episode. If you want an episode removed from the Apple directory, use this tag. For example, you might want to block a specific episode if you know that its content would otherwise cause the entire podcast to be removed from Apple Podcasts. See ItunesBlock for supported values.
func (*Item) WithItunesDuration ¶
WithItunesDuration sets the <itunes:duration> tag containing the length of the episode in seconds.
func (*Item) WithItunesEpisode ¶
WithItunesEpisode sets the <itunes:episode> tag containing a non-zero integer episode number. If all your episodes have numbers, and you would like them to be ordered based on them, use this tag for each one. Episode numbers are optional for episodic shows (TypeEpisodic), but are mandatory for serial shows (TypeSerial).
If you are using your RSS feed to distribute a free version of an episode that is already available to Apple Podcasts paid subscribers, make sure the episode numbers are the same so you don’t have duplicate episodes appear on your show page. Learn more about how to set up your show for a subscription: https://podcasters.apple.com/support/set-up-your-show-for-a-subscription
func (*Item) WithItunesEpisodeType ¶
func (i *Item) WithItunesEpisodeType(episodeType ItunesEpisodeType) *Item
WithItunesEpisodeType sets the <itunes:episodeType> tag containing the episode type. If an episode is a trailer or bonus content, use this tag. See ItunesEpisodeType for supported values.
func (*Item) WithItunesExplicit ¶
WithItunesExplicit sets the <itunes:explicit> tag containing parental advisory information. See Explicit for supported values.
func (*Item) WithItunesImage ¶
WithItunesImage sets the <itunes:image> tag containing episode artwork URL. You should use this tag when you have a high quality, episode-specific image you would like listeners to see.
Depending on their device, listeners see your episode artwork in varying sizes. Therefore, make sure your design is effective at both its original size and at thumbnail size. You should include a title, brand, or source name as part of your episode artwork. To avoid technical issues when you update your episode artwork, be sure to:
- Change the artwork file name and URL at the same time.
- Confirm your art does not contain an Alpha Channel.
- Verify the web server hosting your artwork allows HTTP head requests including Last Modified.
- Artwork must be a minimum size of 1400 x 1400 pixels and a maximum size of 3000 x 3000 pixels, in JPEG or PNG format, 72 dpi, with appropriate file extensions (.jpg, .png), and in the RGB colorspace.
Make sure the file type in the URL matches the actual file type of the image file.
func (*Item) WithItunesSeason ¶
WithItunesSeason sets the <itunes:season> tag containing a non-zero integer season number. If an episode is within a season use this tag. To allow the season feature for shows containing a single season, if only one season exists in the RSS feed, Apple Podcasts doesn’t display a season number. When you add a second season to the RSS feed, Apple Podcasts displays the season numbers.
func (*Item) WithItunesSummary ¶
WithItunesSummary sets the <itunes:summary> tag containing one or more sentences describing your episode to potential listeners. You can specify up to 4000 characters. You can use rich text formatting and some HTML (<p>, <ol>, <ul>, <li>, <a>) if wrapped in the <CDATA> tag.
func (*Item) WithItunesTitle ¶
WithItunesTitle sets the <itunes:title> tag containing the episode title specific for Apple Podcasts. <itunes:title> is a string containing a clear concise name of your episode on Apple Podcasts. Don’t specify the episode number or season number in this tag. Instead, specify those details in the appropriate tags using WithItunesEpisode and WithItunesSeason. Also, don’t repeat the title of your show within your episode title. Separating episode and season number from the title makes it possible for Apple to easily index and order content from all shows.
func (*Item) WithLink ¶
WithLink sets the <link> tag containing episode link URL. This is used when an episode has a corresponding webpage. Use the full URL
func (*Item) WithPodcastTranscript ¶
func (i *Item) WithPodcastTranscript(url string, transcriptType PodcastTranscriptType) *Item
WithPodcastTranscript sets the <podcast:transcript> tag containing link to the episode transcript in the Closed Caption format. You should use this tag when you have a valid transcript file available for users to read. Apple Podcasts will prefer VTT format over SRT format if multiple instances are included. See PodcastTranscriptType for supported values.
type ItemData ¶
type ItemData struct {
// Episode title: a clear, concise name for your episode.
// Don’t specify the episode number or season number in this tag.
// Instead, specify those details in the appropriate tags
// using Item.WithItunesEpisode and Item.WithItunesSeason).
// Also, don’t repeat the title of your show within your episode title.
// Separating episode and season number from the title makes it possible
// for Apple to easily index and order content from all shows.
Title string
// Episode content, file size, and file type information.
Enclosure Enclosure
// Episode’s globally unique identifier (Guid).
//
// It is very important that each episode have a unique Guid
// and that it never changes, even if an episode’s metadata,
// like title or enclosure URL, do change.
// Globally unique identifiers (Guid) are case-sensitive strings.
// If a Guid is not provided, an episode’s enclosure URL will be used instead.
// If a Guid is not provided, make sure that an episode’s enclosure URL is unique and never changes.
//
// Failing to comply with these guidelines may result in duplicate episodes being shown to listeners,
// inaccurate data in Analytics, and can cause issues with your podcasts’s
// listing and chart placement in Apple Podcasts.
Guid string
}
ItemData holds the data for the <item> element in the RSS feed. It includes the minimal set of required tags as per Apple Podcasts specifications
type ItunesBlock ¶
type ItunesBlock string
ItunesBlock represent podcast show or hide status. If you want your show removed from the Apple directory, use this tag. Specifying the <itunes:block> tag with a BlockYes value, prevents the entire podcast from appearing in Apple Podcasts. Specifying any other value has no effect.
const ( BlockNotSet ItunesBlock = "" BlockYes ItunesBlock = "Yes" )
type ItunesComplete ¶
type ItunesComplete string
ItunesComplete represents the podcast update status. If you will never publish another episode to your show, use this tag. Specifying the <itunes:complete> tag with a CompleteYes value indicates that a podcast is complete and you will not post any more episodes in the future. Specifying any other value has no effect.
const ( CompleteNotSet ItunesComplete = "" CompleteYes ItunesComplete = "Yes" )
type ItunesEpisodeType ¶
type ItunesEpisodeType string
ItunesEpisodeType is the episode type. If an episode is a trailer or bonus content, use this tag. Where the episodeType value can be one of the following:
- EpisodeFull. Specify full when you are submitting the complete content of your show.
- EpisodeTrailer. Specify trailer when you are submitting a short, promotional piece of content that represents a preview of your current show.
- EpisodeBonus. Specify bonus when you are submitting extra content for your show (for example, behind the scenes information or interviews with the cast) or cross-promotional content for another show.
The rules for using trailer and bonus tags depend on whether the <itunes:season> and <itunes:episode> tags have values:
Trailer ¶
- No season or episode number: a show trailer
- A season number and no episode number: a season trailer. (Note: an episode trailer should have a different <guid> than the actual episode)
- Episode number and optionally a season number: an episode trailer/teaser, later replaced with the actual episode
Bonus ¶
- No season or episode number: a show bonus
- A season number: a season bonus
- Episode number and optionally a season number: a bonus episode related to a specific episode
const ( EpisodeFull ItunesEpisodeType = "full" EpisodeTrailer ItunesEpisodeType = "trailer" EpisodeBonus ItunesEpisodeType = "bonus" )
type ItunesType ¶
type ItunesType string
ItunesType represents the type of show. If your show is Serial you must use this tag. Its values can be one of the following:
- TypeEpisodic. Specify episodic when episodes are intended to be consumed without any specific order. Apple Podcasts will present newest episodes first and display the publish date (required) of each episode. If organized into seasons, the newest season will be presented first - otherwise, episodes will be grouped by year published, newest first. For new subscribers, Apple Podcasts adds the newest, most recent episode in their Library.
- Serial. Specify serial when episodes are intended to be consumed in sequential order. Apple Podcasts will present the oldest episodes first and display the episode numbers (required) of each episode. If organized into seasons, the newest season will be presented first and <itunes:episode> numbers must be given for each episode.
Each show type has different behavior for automatic downloads. See: https://podcasters.apple.com/support/1662-automatic-downloads-on-apple-podcasts
const ( TypeNotSet ItunesType = "" TypeEpisodic ItunesType = "episodic" TypeSerial ItunesType = "serial" )
type PodcastTranscriptType ¶
type PodcastTranscriptType string
PodcastTranscriptType represents the format of the transcript file. Apple Podcasts will prefer VTT format over SRT format if multiple instances are included. A valid type attribute is required. Accepted types include:
- TranscriptVtt for text/vtt
- TranscriptSrt for application/srt,
- TranscriptSubrip for application/x-subrip.
const ( TranscriptVtt PodcastTranscriptType = "text/vtt" TranscriptSrt PodcastTranscriptType = "application/srt" TranscriptSubrip PodcastTranscriptType = " application/x-subrip" )