Documentation ¶
Index ¶
- Constants
- func Balanced(t *bittorrent.TorrentFile) float64
- func CallbackHandler(ctx *gin.Context)
- func GetCallback() (string, chan []byte)
- func NormalizeTitle(title string) string
- func QualityFactor(t *bittorrent.TorrentFile) float64
- func RemoveCallback(cid string)
- func RemoveTrailingApostrophe(str string) string
- func RemoveTrailingApostrophes(str string) string
- func Resolution720p1080p(t *bittorrent.TorrentFile) int
- func Resolution720p480p(t *bittorrent.TorrentFile) int
- func RomanizeHepburn(str string) string
- func Search(searchers []Searcher, query string) []*bittorrent.TorrentFile
- func SearchEpisode(searchers []EpisodeSearcher, show *tmdb.Show, episode *tmdb.Episode) []*bittorrent.TorrentFile
- func SearchMovie(searchers []MovieSearcher, movie *tmdb.Movie) []*bittorrent.TorrentFile
- func SearchMovieSilent(searchers []MovieSearcher, movie *tmdb.Movie, withAuth bool) []*bittorrent.TorrentFile
- func SearchSeason(searchers []SeasonSearcher, show *tmdb.Show, season *tmdb.Season) []*bittorrent.TorrentFile
- type AddonSearcher
- func (as *AddonSearcher) GetEpisodeSearchObject(show *tmdb.Show, episode *tmdb.Episode) *EpisodeSearchObject
- func (as *AddonSearcher) GetMovieSearchObject(movie *tmdb.Movie) *MovieSearchObject
- func (as *AddonSearcher) GetMovieSearchSilentObject(movie *tmdb.Movie, withAuth bool) *MovieSearchObject
- func (as *AddonSearcher) GetQuerySearchObject(query string) *QuerySearchObject
- func (as *AddonSearcher) GetSeasonSearchObject(show *tmdb.Show, season *tmdb.Season) *SeasonSearchObject
- func (as *AddonSearcher) SearchEpisodeLinks(show *tmdb.Show, episode *tmdb.Episode) []*bittorrent.TorrentFile
- func (as *AddonSearcher) SearchLinks(query string) []*bittorrent.TorrentFile
- func (as *AddonSearcher) SearchMovieLinks(movie *tmdb.Movie) []*bittorrent.TorrentFile
- func (as *AddonSearcher) SearchMovieLinksSilent(movie *tmdb.Movie, withAuth bool) []*bittorrent.TorrentFile
- func (as *AddonSearcher) SearchSeasonLinks(show *tmdb.Show, season *tmdb.Season) []*bittorrent.TorrentFile
- type ByQuality
- type ByResolution
- type BySeeds
- type EpisodeSearchObject
- type EpisodeSearcher
- type GeneralSearchObject
- type MovieSearchObject
- type MovieSearcher
- type MultiSorter
- type QuerySearchObject
- type SearchPayload
- type Searcher
- type SeasonSearchObject
- type SeasonSearcher
Constants ¶
const ( // SortMovies ... SortMovies = iota // SortShows ... SortShows )
const ( // SortBySeeders ... SortBySeeders = iota // SortByResolution ... SortByResolution // SortBalanced ... SortBalanced // SortBySize ... SortBySize )
const ( // Sort1080p720p480p ... Sort1080p720p480p = iota // Sort720p1080p480p ... Sort720p1080p480p // Sort720p480p1080p ... Sort720p480p1080p // Sort480p720p1080p ... Sort480p720p1080p )
Variables ¶
This section is empty.
Functions ¶
func RemoveTrailingApostrophe ¶
RemoveTrailingApostrophe ...
func RemoveTrailingApostrophes ¶
RemoveTrailingApostrophes ...
func Resolution720p1080p ¶
func Resolution720p1080p(t *bittorrent.TorrentFile) int
Resolution720p1080p ...
func Resolution720p480p ¶
func Resolution720p480p(t *bittorrent.TorrentFile) int
Resolution720p480p ...
func RomanizeHepburn ¶
RomanizeHepburn ... as per http://en.wikipedia.org/wiki/Hepburn_romanization#Variations
func SearchEpisode ¶
func SearchEpisode(searchers []EpisodeSearcher, show *tmdb.Show, episode *tmdb.Episode) []*bittorrent.TorrentFile
SearchEpisode ...
func SearchMovie ¶
func SearchMovie(searchers []MovieSearcher, movie *tmdb.Movie) []*bittorrent.TorrentFile
SearchMovie ...
func SearchMovieSilent ¶
func SearchMovieSilent(searchers []MovieSearcher, movie *tmdb.Movie, withAuth bool) []*bittorrent.TorrentFile
SearchMovieSilent ...
func SearchSeason ¶
func SearchSeason(searchers []SeasonSearcher, show *tmdb.Show, season *tmdb.Season) []*bittorrent.TorrentFile
SearchSeason ...
Types ¶
type AddonSearcher ¶
type AddonSearcher struct { MovieSearcher SeasonSearcher EpisodeSearcher // contains filtered or unexported fields }
AddonSearcher ...
func (*AddonSearcher) GetEpisodeSearchObject ¶
func (as *AddonSearcher) GetEpisodeSearchObject(show *tmdb.Show, episode *tmdb.Episode) *EpisodeSearchObject
GetEpisodeSearchObject ...
func (*AddonSearcher) GetMovieSearchObject ¶
func (as *AddonSearcher) GetMovieSearchObject(movie *tmdb.Movie) *MovieSearchObject
GetMovieSearchObject ...
func (*AddonSearcher) GetMovieSearchSilentObject ¶
func (as *AddonSearcher) GetMovieSearchSilentObject(movie *tmdb.Movie, withAuth bool) *MovieSearchObject
GetMovieSearchSilentObject ...
func (*AddonSearcher) GetQuerySearchObject ¶
func (as *AddonSearcher) GetQuerySearchObject(query string) *QuerySearchObject
GetQuerySearchObject ...
func (*AddonSearcher) GetSeasonSearchObject ¶
func (as *AddonSearcher) GetSeasonSearchObject(show *tmdb.Show, season *tmdb.Season) *SeasonSearchObject
GetSeasonSearchObject ...
func (*AddonSearcher) SearchEpisodeLinks ¶
func (as *AddonSearcher) SearchEpisodeLinks(show *tmdb.Show, episode *tmdb.Episode) []*bittorrent.TorrentFile
SearchEpisodeLinks ...
func (*AddonSearcher) SearchLinks ¶
func (as *AddonSearcher) SearchLinks(query string) []*bittorrent.TorrentFile
SearchLinks ...
func (*AddonSearcher) SearchMovieLinks ¶
func (as *AddonSearcher) SearchMovieLinks(movie *tmdb.Movie) []*bittorrent.TorrentFile
SearchMovieLinks ...
func (*AddonSearcher) SearchMovieLinksSilent ¶
func (as *AddonSearcher) SearchMovieLinksSilent(movie *tmdb.Movie, withAuth bool) []*bittorrent.TorrentFile
SearchMovieLinksSilent ...
func (*AddonSearcher) SearchSeasonLinks ¶
func (as *AddonSearcher) SearchSeasonLinks(show *tmdb.Show, season *tmdb.Season) []*bittorrent.TorrentFile
SearchSeasonLinks ...
type ByResolution ¶
type ByResolution []*bittorrent.TorrentFile
ByResolution ...
func (ByResolution) Len ¶
func (a ByResolution) Len() int
func (ByResolution) Less ¶
func (a ByResolution) Less(i, j int) bool
func (ByResolution) Swap ¶
func (a ByResolution) Swap(i, j int)
type EpisodeSearchObject ¶
type EpisodeSearchObject struct { GeneralSearchObject IMDBId string `json:"imdb_id"` TVDBId int `json:"tvdb_id"` TMDBId int `json:"tmdb_id"` ShowTMDBId int `json:"show_tmdb_id"` Title string `json:"title"` Season int `json:"season"` Episode int `json:"episode"` Year int `json:"year"` Titles map[string]string `json:"titles"` AbsoluteNumber int `json:"absolute_number"` }
EpisodeSearchObject ...
type EpisodeSearcher ¶
type EpisodeSearcher interface {
SearchEpisodeLinks(show *tmdb.Show, episode *tmdb.Episode) []*bittorrent.TorrentFile
}
EpisodeSearcher ...
type GeneralSearchObject ¶
type GeneralSearchObject struct { ProxyURL string `json:"proxy_url"` InternalProxyURL string `json:"internal_proxy_url"` Silent bool `json:"silent"` SkipAuth bool `json:"skip_auth"` // contains filtered or unexported fields }
GeneralSearchObject ...
type MovieSearchObject ¶
type MovieSearchObject struct { GeneralSearchObject IMDBId string `json:"imdb_id"` TMDBId int `json:"tmdb_id"` Title string `json:"title"` Year int `json:"year"` Years map[string]int `json:"years"` Titles map[string]string `json:"titles"` }
MovieSearchObject ...
type MovieSearcher ¶
type MovieSearcher interface { SearchMovieLinks(movie *tmdb.Movie) []*bittorrent.TorrentFile SearchMovieLinksSilent(movie *tmdb.Movie, withAuth bool) []*bittorrent.TorrentFile }
MovieSearcher ...
type MultiSorter ¶
type MultiSorter struct {
// contains filtered or unexported fields
}
MultiSorter ...
func (*MultiSorter) Len ¶
func (ms *MultiSorter) Len() int
func (*MultiSorter) Less ¶
func (ms *MultiSorter) Less(i, j int) bool
func (*MultiSorter) Swap ¶
func (ms *MultiSorter) Swap(i, j int)
type QuerySearchObject ¶
type QuerySearchObject struct { GeneralSearchObject Query string `json:"query"` }
QuerySearchObject ...
type SearchPayload ¶
type SearchPayload struct { Method string `json:"method"` CallbackURL string `json:"callback_url"` SearchObject interface{} `json:"search_object"` }
SearchPayload ...
func (*SearchPayload) String ¶
func (sp *SearchPayload) String() string
type Searcher ¶
type Searcher interface {
SearchLinks(query string) []*bittorrent.TorrentFile
}
Searcher ...
type SeasonSearchObject ¶
type SeasonSearchObject struct { GeneralSearchObject IMDBId string `json:"imdb_id"` TVDBId int `json:"tvdb_id"` TMDBId int `json:"tmdb_id"` ShowTMDBId int `json:"show_tmdb_id"` Title string `json:"title"` Season int `json:"season"` Year int `json:"year"` Titles map[string]string `json:"titles"` }
SeasonSearchObject ...
type SeasonSearcher ¶
type SeasonSearcher interface {
SearchSeasonLinks(show *tmdb.Show, season *tmdb.Season) []*bittorrent.TorrentFile
}
SeasonSearcher ...