api

package
v0.0.0-...-29a3764 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: GPL-3.0 Imports: 41 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// MovieMenu represents Custom Movie menu
	MovieMenu = Menu{Name: "MovieMenu"}

	// TVMenu represents Custom TV menu
	TVMenu = Menu{Name: "TVMenu"}
)

Functions

func AddMovie

func AddMovie(ctx *gin.Context)

AddMovie ...

func AddMovieToCollection

func AddMovieToCollection(ctx *gin.Context)

AddMovieToCollection ...

func AddMovieToWatchlist

func AddMovieToWatchlist(ctx *gin.Context)

AddMovieToWatchlist ...

func AddMoviesList

func AddMoviesList(ctx *gin.Context)

AddMoviesList ...

func AddShow

func AddShow(ctx *gin.Context)

AddShow ...

func AddShowToCollection

func AddShowToCollection(ctx *gin.Context)

AddShowToCollection ...

func AddShowToWatchlist

func AddShowToWatchlist(ctx *gin.Context)

AddShowToWatchlist ...

func AddShowsList

func AddShowsList(ctx *gin.Context)

AddShowsList ...

func AddToTorrentsMap

func AddToTorrentsMap(tmdbID string, torrent *bittorrent.TorrentFile)

AddToTorrentsMap ...

func AddTorrent

func AddTorrent(s *bittorrent.Service) gin.HandlerFunc

AddTorrent ...

func AuthorizeTrakt

func AuthorizeTrakt(ctx *gin.Context)

AuthorizeTrakt ...

func AutoscrapedMovies

func AutoscrapedMovies(ctx *gin.Context)

AutoscrapedMovies ...

func CalendarMovies

func CalendarMovies(ctx *gin.Context)

CalendarMovies ...

func CalendarShows

func CalendarShows(ctx *gin.Context)

CalendarShows ...

func Changelog

func Changelog(ctx *gin.Context)

Changelog display

func ClearCache

func ClearCache(ctx *gin.Context)

ClearCache ...

func ClearCacheTMDB

func ClearCacheTMDB(ctx *gin.Context)

ClearCacheTMDB ...

func ClearCacheTrakt

func ClearCacheTrakt(ctx *gin.Context)

ClearCacheTrakt ...

func ClearDatabase

func ClearDatabase(ctx *gin.Context)

ClearDatabase ...

func ClearDatabaseMovies

func ClearDatabaseMovies(ctx *gin.Context)

ClearDatabaseMovies ...

func ClearDatabaseSearchHistory

func ClearDatabaseSearchHistory(ctx *gin.Context)

ClearDatabaseSearchHistory ...

func ClearDatabaseShows

func ClearDatabaseShows(ctx *gin.Context)

ClearDatabaseShows ...

func ClearDatabaseTorrentHistory

func ClearDatabaseTorrentHistory(ctx *gin.Context)

ClearDatabaseTorrentHistory ...

func ClearPageCache

func ClearPageCache(ctx *gin.Context)

ClearPageCache ...

func ClearTmdbCache

func ClearTmdbCache(ctx *gin.Context)

ClearTmdbCache ...

func ClearTraktCache

func ClearTraktCache(ctx *gin.Context)

ClearTraktCache ...

func CollectionMovies

func CollectionMovies(ctx *gin.Context)

CollectionMovies ...

func CollectionShows

func CollectionShows(ctx *gin.Context)

CollectionShows ...

func ContextPlaySelector

func ContextPlaySelector(s *bittorrent.Service) gin.HandlerFunc

ContextPlaySelector ...

func Donate(ctx *gin.Context)

Donate display

func Download

func Download(s *bittorrent.Service) gin.HandlerFunc

Download ...

func DownloadAllTorrent

func DownloadAllTorrent(s *bittorrent.Service) gin.HandlerFunc

DownloadAllTorrent ...

func GetCachedTorrents

func GetCachedTorrents(tmdbID string) ([]*bittorrent.TorrentFile, error)

GetCachedTorrents searches for torrent entries in the cache

func GetEpisodeLabels

func GetEpisodeLabels(showID, seasonNumber, episodeNumber int) (item *xbmc.ListItem, err error)

GetEpisodeLabels returnes listitem for an episode

func GetMovieLabels

func GetMovieLabels(tmdbID string) (item *xbmc.ListItem, err error)

GetMovieLabels returnes listitem for a movie

func GetSearchLabels

func GetSearchLabels(s *bittorrent.Service, tmdbID string) (item *xbmc.ListItem, err error)

GetSearchLabels returnes listitem for a search query

func GetTorrentFromParam

func GetTorrentFromParam(s *bittorrent.Service, param string) (*bittorrent.Torrent, error)

GetTorrentFromParam ...

func History

func History(ctx *gin.Context)

History ...

func HistoryClear

func HistoryClear(ctx *gin.Context)

HistoryClear ...

func HistoryRemove

func HistoryRemove(ctx *gin.Context)

HistoryRemove ...

func IMDBTop250

func IMDBTop250(ctx *gin.Context)

IMDBTop250 ...

func InTorrentsHistory

func InTorrentsHistory(infohash string) *bittorrent.TorrentFile

InTorrentsHistory ...

func InTorrentsMap

func InTorrentsMap(tmdbID string) *bittorrent.TorrentFile

InTorrentsMap ...

func Index

Index ...

func InfoLabelsEpisode

func InfoLabelsEpisode(s *bittorrent.Service) gin.HandlerFunc

InfoLabelsEpisode ...

func InfoLabelsMovie

func InfoLabelsMovie(s *bittorrent.Service) gin.HandlerFunc

InfoLabelsMovie ...

func InfoLabelsSearch

func InfoLabelsSearch(s *bittorrent.Service) gin.HandlerFunc

InfoLabelsSearch ...

func InfoLabelsStored

func InfoLabelsStored(s *bittorrent.Service) gin.HandlerFunc

InfoLabelsStored ...

func ListTorrents

func ListTorrents(s *bittorrent.Service) gin.HandlerFunc

ListTorrents ...

func ListTorrentsWeb

func ListTorrentsWeb(s *bittorrent.Service) gin.HandlerFunc

ListTorrentsWeb ...

func MenuAdd(ctx *gin.Context)

MenuAdd ...

func MenuRemove(ctx *gin.Context)

MenuRemove ...

func MoveTorrent

func MoveTorrent(s *bittorrent.Service) gin.HandlerFunc

MoveTorrent ...

func MovieCountries

func MovieCountries(ctx *gin.Context)

MovieCountries ...

func MovieGenres

func MovieGenres(ctx *gin.Context)

MovieGenres ...

func MovieLanguages

func MovieLanguages(ctx *gin.Context)

MovieLanguages ...

func MovieLibrary

func MovieLibrary(ctx *gin.Context)

MovieLibrary ...

func MovieLinks(action string, s *bittorrent.Service) gin.HandlerFunc

MovieLinks ...

func MovieRun

func MovieRun(action string, s *bittorrent.Service) gin.HandlerFunc

MovieRun ...

func MoviesIndex

func MoviesIndex(ctx *gin.Context)

MoviesIndex ...

func MoviesMostVoted

func MoviesMostVoted(ctx *gin.Context)

MoviesMostVoted ...

func MoviesTraktLists

func MoviesTraktLists(ctx *gin.Context)

MoviesTraktLists ...

func OpenCustomPath

func OpenCustomPath(ctx *gin.Context)

OpenCustomPath ...

func Pastebin

func Pastebin(ctx *gin.Context)

Pastebin uploads /debug/:type to pastebin

func PauseSession

func PauseSession(s *bittorrent.Service) gin.HandlerFunc

PauseSession ...

func PauseTorrent

func PauseTorrent(s *bittorrent.Service) gin.HandlerFunc

PauseTorrent ...

func Play

Play ...

func PlayMovie

func PlayMovie(s *bittorrent.Service) gin.HandlerFunc

PlayMovie ...

func PlayShow

func PlayShow(s *bittorrent.Service) gin.HandlerFunc

PlayShow ...

func PlayTorrent

func PlayTorrent(ctx *gin.Context)

PlayTorrent ...

func PlayURI

func PlayURI(s *bittorrent.Service) gin.HandlerFunc

PlayURI ...

func PopularMovies

func PopularMovies(ctx *gin.Context)

PopularMovies ...

func PopularShows

func PopularShows(ctx *gin.Context)

PopularShows ...

func ProviderCheck

func ProviderCheck(ctx *gin.Context)

ProviderCheck ...

func ProviderDisable

func ProviderDisable(ctx *gin.Context)

ProviderDisable ...

func ProviderEnable

func ProviderEnable(ctx *gin.Context)

ProviderEnable ...

func ProviderFailure

func ProviderFailure(ctx *gin.Context)

ProviderFailure ...

func ProviderGetEpisode

func ProviderGetEpisode(ctx *gin.Context)

ProviderGetEpisode ...

func ProviderGetMovie

func ProviderGetMovie(ctx *gin.Context)

ProviderGetMovie ...

func ProviderList

func ProviderList(ctx *gin.Context)

ProviderList ...

func ProviderSettings

func ProviderSettings(ctx *gin.Context)

ProviderSettings ...

func ProvidersDisableAll

func ProvidersDisableAll(ctx *gin.Context)

ProvidersDisableAll ...

func ProvidersEnableAll

func ProvidersEnableAll(ctx *gin.Context)

ProvidersEnableAll ...

func RecentEpisodes

func RecentEpisodes(ctx *gin.Context)

RecentEpisodes ...

func RecentMovies

func RecentMovies(ctx *gin.Context)

RecentMovies ...

func RecentShows

func RecentShows(ctx *gin.Context)

RecentShows ...

func RemoveMovie

func RemoveMovie(ctx *gin.Context)

RemoveMovie ...

func RemoveMovieFromCollection

func RemoveMovieFromCollection(ctx *gin.Context)

RemoveMovieFromCollection ...

func RemoveMovieFromWatchlist

func RemoveMovieFromWatchlist(ctx *gin.Context)

RemoveMovieFromWatchlist ...

func RemoveShow

func RemoveShow(ctx *gin.Context)

RemoveShow ...

func RemoveShowFromCollection

func RemoveShowFromCollection(ctx *gin.Context)

RemoveShowFromCollection ...

func RemoveShowFromWatchlist

func RemoveShowFromWatchlist(ctx *gin.Context)

RemoveShowFromWatchlist ...

func RemoveTorrent

func RemoveTorrent(s *bittorrent.Service) gin.HandlerFunc

RemoveTorrent ...

func ResetCustomPath

func ResetCustomPath(ctx *gin.Context)

ResetCustomPath ...

func ResetPath

func ResetPath(ctx *gin.Context)

ResetPath ...

func ResumeSession

func ResumeSession(s *bittorrent.Service) gin.HandlerFunc

ResumeSession ...

func ResumeTorrent

func ResumeTorrent(s *bittorrent.Service) gin.HandlerFunc

ResumeTorrent ...

func Routes

func Routes(s *bittorrent.Service) *gin.Engine

Routes ...

func Search(s *bittorrent.Service) gin.HandlerFunc

Search ...

func SearchClear

func SearchClear(ctx *gin.Context)

SearchClear ...

func SearchMovies

func SearchMovies(ctx *gin.Context)

SearchMovies ...

func SearchRemove

func SearchRemove(ctx *gin.Context)

SearchRemove ...

func SearchShows

func SearchShows(ctx *gin.Context)

SearchShows ...

func SelectFileTorrent

func SelectFileTorrent(s *bittorrent.Service) gin.HandlerFunc

SelectFileTorrent ...

func SelectNetworkInterface

func SelectNetworkInterface(ctx *gin.Context)

SelectNetworkInterface ...

func SelectStrmLanguage

func SelectStrmLanguage(ctx *gin.Context)

SelectStrmLanguage ...

func SelectTraktUserList

func SelectTraktUserList(ctx *gin.Context)

SelectTraktUserList ...

func SetCachedTorrents

func SetCachedTorrents(tmdbID string, torrents []*bittorrent.TorrentFile) error

SetCachedTorrents caches torrent search results in cache

func SetViewMode

func SetViewMode(ctx *gin.Context)

SetViewMode ...

func Settings

func Settings(ctx *gin.Context)

Settings display

func ShowEpisodeLinks(action string, s *bittorrent.Service) gin.HandlerFunc

ShowEpisodeLinks ...

func ShowEpisodeRun

func ShowEpisodeRun(action string, s *bittorrent.Service) gin.HandlerFunc

ShowEpisodeRun ...

func ShowEpisodes

func ShowEpisodes(ctx *gin.Context)

ShowEpisodes ...

func ShowSeasonLinks(action string, s *bittorrent.Service) gin.HandlerFunc

ShowSeasonLinks ...

func ShowSeasonRun

func ShowSeasonRun(action string, s *bittorrent.Service) gin.HandlerFunc

ShowSeasonRun ...

func ShowSeasons

func ShowSeasons(ctx *gin.Context)

ShowSeasons ...

func Status

func Status(ctx *gin.Context)

Status display

func SubtitleGet

func SubtitleGet(ctx *gin.Context)

SubtitleGet ...

func SubtitlesIndex

func SubtitlesIndex(s *bittorrent.Service) gin.HandlerFunc

SubtitlesIndex ...

func TVCountries

func TVCountries(ctx *gin.Context)

TVCountries ...

func TVGenres

func TVGenres(ctx *gin.Context)

TVGenres ...

func TVIndex

func TVIndex(ctx *gin.Context)

TVIndex ...

func TVLanguages

func TVLanguages(ctx *gin.Context)

TVLanguages ...

func TVLibrary

func TVLibrary(ctx *gin.Context)

TVLibrary ...

func TVMostVoted

func TVMostVoted(ctx *gin.Context)

TVMostVoted ...

func TVTraktLists

func TVTraktLists(ctx *gin.Context)

TVTraktLists ...

func TopRatedMovies

func TopRatedMovies(ctx *gin.Context)

TopRatedMovies ...

func TopRatedShows

func TopRatedShows(ctx *gin.Context)

TopRatedShows ...

func TopTraktLists

func TopTraktLists(ctx *gin.Context)

TopTraktLists ...

func TraktAllMovies

func TraktAllMovies(ctx *gin.Context)

TraktAllMovies ...

func TraktAllNewShows

func TraktAllNewShows(ctx *gin.Context)

TraktAllNewShows ...

func TraktAllPremieres

func TraktAllPremieres(ctx *gin.Context)

TraktAllPremieres ...

func TraktAllReleases

func TraktAllReleases(ctx *gin.Context)

TraktAllReleases ...

func TraktAllShows

func TraktAllShows(ctx *gin.Context)

TraktAllShows ...

func TraktBoxOffice

func TraktBoxOffice(ctx *gin.Context)

TraktBoxOffice ...

func TraktHistoryMovies

func TraktHistoryMovies(ctx *gin.Context)

TraktHistoryMovies ...

func TraktHistoryShows

func TraktHistoryShows(ctx *gin.Context)

TraktHistoryShows ...

func TraktMostAnticipatedMovies

func TraktMostAnticipatedMovies(ctx *gin.Context)

TraktMostAnticipatedMovies ...

func TraktMostAnticipatedShows

func TraktMostAnticipatedShows(ctx *gin.Context)

TraktMostAnticipatedShows ...

func TraktMostCollectedMovies

func TraktMostCollectedMovies(ctx *gin.Context)

TraktMostCollectedMovies ...

func TraktMostCollectedShows

func TraktMostCollectedShows(ctx *gin.Context)

TraktMostCollectedShows ...

func TraktMostPlayedMovies

func TraktMostPlayedMovies(ctx *gin.Context)

TraktMostPlayedMovies ...

func TraktMostPlayedShows

func TraktMostPlayedShows(ctx *gin.Context)

TraktMostPlayedShows ...

func TraktMostWatchedMovies

func TraktMostWatchedMovies(ctx *gin.Context)

TraktMostWatchedMovies ...

func TraktMostWatchedShows

func TraktMostWatchedShows(ctx *gin.Context)

TraktMostWatchedShows ...

func TraktMyMovies

func TraktMyMovies(ctx *gin.Context)

TraktMyMovies ...

func TraktMyNewShows

func TraktMyNewShows(ctx *gin.Context)

TraktMyNewShows ...

func TraktMyPremieres

func TraktMyPremieres(ctx *gin.Context)

TraktMyPremieres ...

func TraktMyReleases

func TraktMyReleases(ctx *gin.Context)

TraktMyReleases ...

func TraktMyShows

func TraktMyShows(ctx *gin.Context)

TraktMyShows ...

func TraktPopularMovies

func TraktPopularMovies(ctx *gin.Context)

TraktPopularMovies ...

func TraktPopularShows

func TraktPopularShows(ctx *gin.Context)

TraktPopularShows ...

func TraktProgressShows

func TraktProgressShows(ctx *gin.Context)

TraktProgressShows ...

func TraktRecommendationsMovies

func TraktRecommendationsMovies(ctx *gin.Context)

TraktRecommendationsMovies ...

func TraktRecommendationsShows

func TraktRecommendationsShows(ctx *gin.Context)

TraktRecommendationsShows ...

func TraktTrendingMovies

func TraktTrendingMovies(ctx *gin.Context)

TraktTrendingMovies ...

func TraktTrendingShows

func TraktTrendingShows(ctx *gin.Context)

TraktTrendingShows ...

func URLForHTTP

func URLForHTTP(pattern string, args ...interface{}) string

URLForHTTP ...

func URLForXBMC

func URLForXBMC(pattern string, args ...interface{}) string

URLForXBMC ...

func URLQuery

func URLQuery(route string, query ...string) string

URLQuery ...

func UnDownloadAllTorrent

func UnDownloadAllTorrent(s *bittorrent.Service) gin.HandlerFunc

UnDownloadAllTorrent ...

func UpdateLibrary

func UpdateLibrary(ctx *gin.Context)

UpdateLibrary ...

func UpdateTrakt

func UpdateTrakt(ctx *gin.Context)

UpdateTrakt ...

func UserlistMovies

func UserlistMovies(ctx *gin.Context)

UserlistMovies ...

func UserlistShows

func UserlistShows(ctx *gin.Context)

UserlistShows ...

func Versions

func Versions(s *bittorrent.Service) gin.HandlerFunc

Versions ...

func WatchlistMovies

func WatchlistMovies(ctx *gin.Context)

WatchlistMovies ...

func WatchlistShows

func WatchlistShows(ctx *gin.Context)

WatchlistShows ...

Types

type Addon

type Addon struct {
	ID      string
	Name    string
	Version string
	Enabled bool
	Status  int
}

Addon ...

type ByEnabled

type ByEnabled []Addon

ByEnabled ...

func (ByEnabled) Len

func (a ByEnabled) Len() int

func (ByEnabled) Less

func (a ByEnabled) Less(i, j int) bool

func (ByEnabled) Swap

func (a ByEnabled) Swap(i, j int)

type ByStatus

type ByStatus []Addon

ByStatus ...

func (ByStatus) Len

func (a ByStatus) Len() int

func (ByStatus) Less

func (a ByStatus) Less(i, j int) bool

func (ByStatus) Swap

func (a ByStatus) Swap(i, j int)
type Menu struct {
	Name        string      `json:"name"`
	AddItems    []*MenuItem `json:"add_items"`
	RemoveItems []*MenuItem `json:"remove_items"`
}

Menu ...

func (m *Menu) Add(action int, i *MenuItem)

Add ...

func (m *Menu) Contains(action int, i *MenuItem) bool

Contains ...

func (m *Menu) Has(action int, i *MenuItem) int

Has ...

func (m *Menu) Load()

Load ...

func (m *Menu) Remove(action int, i *MenuItem)

Remove ...

func (m *Menu) Save()

Save ...

type MenuItem struct {
	Link string `json:"link"`
	Name string `json:"name"`
}

MenuItem ...

type PasteFields

type PasteFields struct {
	Title      string
	Poster     string
	Syntax     string
	Expiration string
	Content    string
}

PasteFields describes [string]string values for projects

type PasteProject

type PasteProject struct {
	Name    string
	URL     string
	BaseURL string
	IsJSON  bool
	IsRAW   bool
	Fields  PasteFields
	Values  PasteFields
}

PasteProject describes each pastebin project

type TorrentsWeb

type TorrentsWeb struct {
	ID            string  `json:"id"`
	Name          string  `json:"name"`
	Size          string  `json:"size"`
	Status        string  `json:"status"`
	Progress      float64 `json:"progress"`
	Ratio         float64 `json:"ratio"`
	TimeRatio     float64 `json:"time_ratio"`
	SeedingTime   string  `json:"seeding_time"`
	SeedTime      float64 `json:"seed_time"`
	SeedTimeLimit int     `json:"seed_time_limit"`
	DownloadRate  float64 `json:"download_rate"`
	UploadRate    float64 `json:"upload_rate"`
	Seeders       int     `json:"seeders"`
	SeedersTotal  int     `json:"seeders_total"`
	Peers         int     `json:"peers"`
	PeersTotal    int     `json:"peers_total"`
}

TorrentsWeb ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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