subscene

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 28, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Download

func Download(token string, f func(contentDisposition, contentType string, size int, reader io.Reader)) error

Types

type SearchItem

type SearchItem struct {
	Title string `json:"title"`
	URL   string `json:"url"`
}

type SearchResult

type SearchResult struct {
	Found      bool                    `json:"found"`
	Categories map[string][]SearchItem `json:"categories"`
}
func Search(name string) (SearchResult, error)

type Subtitle

type Subtitle struct {
	Lang    string `json:"lang"`
	Release string `json:"release"`
	User    string `json:"user"`
	Comment string `json:"comment"`
	URL     string `json:"url"`
}

func ListSubtitles

func ListSubtitles(name string) ([]Subtitle, error)

type SubtitleDetails

type SubtitleDetails struct {
	Releases     []string `json:"releases"`
	Description  string   `json:"description"`
	User         string   `json:"user"`
	UserRating   int      `json:"userRating"`
	DateTime     string   `json:"datetime"`
	Files        int      `json:"files"`
	Rate         int      `json:"rate"`
	RateCount    int      `json:"rateCount"`
	Downloads    int      `json:"downloads"`
	DownloadLink string   `json:"downloadLink"`
	Comments     int      `json:"comments"`
	CommentLink  string   `json:"commentLink"`
}

func Details

func Details(name, id string) (SubtitleDetails, error)

Jump to

Keyboard shortcuts

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