showsrss

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Detail

func Detail(t *term.ViewPort, item RssItem) error

The Run function displays a menu of news topics and allows the user to select a topic to view the news articles related to that topic.

func Run

func Run(t *term.ViewPort) error

The Run function displays a menu of news topics and allows the user to select a topic to view the news articles related to that topic.

Types

type RssBody

type RssBody struct {
	XMLName xml.Name `xml:"rss"`
	Text    string   `xml:",chardata"`
	Version string   `xml:"version,attr"`
	Tv      string   `xml:"tv,attr"`
	Channel struct {
		Text        string    `xml:",chardata"`
		Title       string    `xml:"title"`
		Link        string    `xml:"link"`
		Ttl         string    `xml:"ttl"`
		Description string    `xml:"description"`
		Item        []RssItem `xml:"item"`
	} `xml:"channel"`
}

type RssItem

type RssItem struct {
	Text  string `xml:",chardata"`
	Title string `xml:"title"`
	Link  string `xml:"link"`
	Guid  struct {
		Text        string `xml:",chardata"`
		IsPermaLink string `xml:"isPermaLink,attr"`
	} `xml:"guid"`
	PubDate     string `xml:"pubDate"`
	Description string `xml:"description"`
	ShowID      string `xml:"show_id"`
	ExternalID  string `xml:"external_id"`
	ShowName    string `xml:"show_name"`
	EpisodeID   string `xml:"episode_id"`
	RawTitle    string `xml:"raw_title"`
	InfoHash    string `xml:"info_hash"`
	Enclosure   struct {
		Text   string `xml:",chardata"`
		URL    string `xml:"url,attr"`
		Length string `xml:"length,attr"`
		Type   string `xml:"type,attr"`
	} `xml:"enclosure"`
}

Jump to

Keyboard shortcuts

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