sync

package
v0.0.0-...-05a34cb Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2025 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AverageColor

func AverageColor(img image.Image) color.Color

func ColorToHexString

func ColorToHexString(c color.Color) string

func Fetch

func Fetch(url string) ([]byte, error)

func SanitizeAndSaveImage

func SanitizeAndSaveImage(imageURL, outputBasePath string) (color.Color, error)

func Sync

func Sync(podcastId uuid.UUID) error

Types

type Channel

type Channel struct {
	Image       Image  `xml:"image"`
	Title       string `xml:"title"`
	Description string `xml:"description"`
	Items       []Item `xml:"item"`
}

type Enclosure

type Enclosure struct {
	URL  string `xml:"url,attr"`
	Type string `xml:"type,attr"`
}

type Image

type Image struct {
	URL    string `xml:"url"`
	AltURL string `xml:"href,attr"`
}

type Item

type Item struct {
	ID          string      `xml:"guid"`
	Title       string      `xml:"title"`
	Description string      `xml:"description"`
	Duration    string      `xml:"duration"`
	Date        string      `xml:"pubDate"`
	Enclosures  []Enclosure `xml:"enclosure"`
}

type Rss

type Rss struct {
	Channel Channel `xml:"channel"`
}

Jump to

Keyboard shortcuts

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