opensubtitle

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChunkSize = 65536 // 64k
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Token string
	*xmlrpc.Client
}

func NewClient

func NewClient() (*Client, error)

func (*Client) Search

func (c *Client) Search(path string) (subtitles Subtitles, err error)

type ClientFile added in v1.0.2

type ClientFile struct {
	*os.File
}

func (ClientFile) Size added in v1.0.2

func (f ClientFile) Size() int64

type Subtitle

type Subtitle struct {
	IDMovie             string `xmlrpc:"IDMovie"`
	IDMovieImdb         string `xmlrpc:"IDMovieImdb"`
	IDSubMovieFile      string `xmlrpc:"IDSubMovieFile"`
	IDSubtitle          string `xmlrpc:"IDSubtitle"`
	IDSubtitleFile      string `xmlrpc:"IDSubtitleFile"`
	ISO639              string `xmlrpc:"ISO639"`
	LanguageName        string `xmlrpc:"LanguageName"`
	MatchedBy           string `xmlrpc:"MatchedBy"`
	MovieByteSize       string `xmlrpc:"MovieByteSize"`
	MovieFPS            string `xmlrpc:"MovieFPS"`
	MovieHash           string `xmlrpc:"MovieHash"`
	MovieImdbRating     string `xmlrpc:"MovieImdbRating"`
	MovieKind           string `xmlrpc:"MovieKind"`
	MovieName           string `xmlrpc:"MovieName"`
	MovieNameEng        string `xmlrpc:"MovieNameEng"`
	MovieReleaseName    string `xmlrpc:"MovieReleaseName"`
	MovieTimeMS         string `xmlrpc:"MovieTimeMS"`
	MovieYear           string `xmlrpc:"MovieYear"`
	MovieFileName       string `xmlrpc:"MovieName"`
	QueryNumber         string `xmlrpc:"QueryNumber"`
	SeriesEpisode       string `xmlrpc:"SeriesEpisode"`
	SeriesIMDBParent    string `xmlrpc:"SeriesIMDBParent"`
	SeriesSeason        string `xmlrpc:"SeriesSeason"`
	SubActualCD         string `xmlrpc:"SubActualCD"`
	SubAddDate          string `xmlrpc:"SubAddDate"`
	SubAuthorComment    string `xmlrpc:"SubAuthorComment"`
	SubAutoTranslation  string `xmlrpc:"SubAutoTranslation"`
	SubBad              string `xmlrpc:"SubBad"`
	SubComments         string `xmlrpc:"SubComments"`
	SubDownloadLink     string `xmlrpc:"SubDownloadLink"`
	SubDownloadsCnt     string `xmlrpc:"SubDownloadsCnt"`
	SubFeatured         string `xmlrpc:"SubFeatured"`
	SubFileName         string `xmlrpc:"SubFileName"`
	SubFormat           string `xmlrpc:"SubFormat"`
	SubHash             string `xmlrpc:"SubHash"`
	SubHD               string `xmlrpc:"SubHD"`
	SubHearingImpaired  string `xmlrpc:"SubHearingImpaired"`
	SubLanguageID       string `xmlrpc:"SubLanguageID"`
	SubRating           string `xmlrpc:"SubRating"`
	SubSize             string `xmlrpc:"SubSize"`
	SubSumCD            string `xmlrpc:"SubSumCD"`
	SubEncoding         string `xmlrpc:"SubEncoding"`
	SubForeignPartsOnly string `xmlrpc:"SubForeignPartsOnly"`
	SubFromTrusted      string `xmlrpc:"SubFromTrusted"`
	SubtitlesLink       string `xmlrpc:"SubtitlesLink"`
	UserID              string `xmlrpc:"UserID"`
	UserNickName        string `xmlrpc:"UserNickName"`
	UserRank            string `xmlrpc:"UserRank"`
	ZipDownloadLink     string `xmlrpc:"ZipDownloadLink"`
	// contains filtered or unexported fields
}

func (*Subtitle) Download

func (s *Subtitle) Download(path string) (err error)

func (*Subtitle) String added in v1.0.2

func (s *Subtitle) String() string

type Subtitles

type Subtitles []Subtitle

func (*Subtitles) ToMap

func (s *Subtitles) ToMap() map[string]*Subtitle

Jump to

Keyboard shortcuts

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