podcast

package
v0.0.0-...-ee1519a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanDescription

func CleanDescription(s string) string

func NormalizeDuration

func NormalizeDuration(s string) string

Types

type Episode

type Episode struct {
	Title        string
	Description  template.HTML
	Published    time.Time
	PublishedStr string
	Link         string
	Duration     string
}

func CreateFromItem

func CreateFromItem(item *gofeed.Item) *Episode

type Podcast

type Podcast struct {
	Feed             *gofeed.Feed
	Slug             string
	Title            string
	Description      template.HTML
	Episodes         []*Episode
	FeedUrl          string
	WebsiteUrl       string
	WebsiteUrl2      string
	LatestPublish    time.Time
	LatestPublishStr string
	LatestEpisode    *Episode
}

func CreateFromFeed

func CreateFromFeed(slug string, feedUrl string, websiteUrl string, feed *gofeed.Feed) *Podcast

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL