newznabapi

package
v0.0.0-...-ed12b99 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2015 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Newznab

type Newznab struct {
	Name    string
	BaseUrl string
	ApiKey  string
}

func (*Newznab) GetNewznabResults

func (provider *Newznab) GetNewznabResults(searchTerm string) []NewznabSearchResult

func (*Newznab) NewznabUrlGetNzb

func (provider *Newznab) NewznabUrlGetNzb(guid string) string

func (*Newznab) NewznabUrlQuery

func (provider *Newznab) NewznabUrlQuery(searchTerm string) string

type NewznabSearchResult

type NewznabSearchResult struct {
	Title string `xml:"title"`
	Guid  string `xml:"guid"`
	Url   string
}

func FindBestNewznabResult

func FindBestNewznabResult(results [][]NewznabSearchResult, search string, quality string) []NewznabSearchResult

func NewznabResultsParse

func NewznabResultsParse(newzNabQueryResults []byte) NewznabSearchResult

Jump to

Keyboard shortcuts

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