Documentation ¶
Index ¶
- Variables
- func AddMovie(ctx *gin.Context)
- func AddMovieToCollection(ctx *gin.Context)
- func AddMovieToWatchlist(ctx *gin.Context)
- func AddMoviesList(ctx *gin.Context)
- func AddShow(ctx *gin.Context)
- func AddShowToCollection(ctx *gin.Context)
- func AddShowToWatchlist(ctx *gin.Context)
- func AddShowsList(ctx *gin.Context)
- func AddToTorrentsMap(tmdbID string, torrent *bittorrent.TorrentFile)
- func AddTorrent(s *bittorrent.Service) gin.HandlerFunc
- func AssignTorrent(s *bittorrent.Service) gin.HandlerFunc
- func Auth() gin.HandlerFunc
- func AuthorizeTrakt(ctx *gin.Context)
- func CORS() gin.HandlerFunc
- func CalendarMovies(ctx *gin.Context)
- func CalendarShows(ctx *gin.Context)
- func Changelog(ctx *gin.Context)
- func ClearCache(ctx *gin.Context)
- func ClearCacheTMDB(ctx *gin.Context)
- func ClearCacheTrakt(ctx *gin.Context)
- func ClearDatabase(ctx *gin.Context)
- func ClearDatabaseDeletedMovies(ctx *gin.Context)
- func ClearDatabaseDeletedShows(ctx *gin.Context)
- func ClearDatabaseMovies(ctx *gin.Context)
- func ClearDatabaseSearchHistory(ctx *gin.Context)
- func ClearDatabaseShows(ctx *gin.Context)
- func ClearDatabaseTorrentHistory(ctx *gin.Context)
- func ClearPageCache(ctx *gin.Context)
- func ClearTmdbCache(ctx *gin.Context)
- func ClearTraktCache(ctx *gin.Context)
- func CollectionMovies(ctx *gin.Context)
- func CollectionShows(ctx *gin.Context)
- func CompactCache(ctx *gin.Context)
- func CompactDatabase(ctx *gin.Context)
- func ContextActionFromKodiLibrarySelector(s *bittorrent.Service) gin.HandlerFunc
- func ContextAssignKodiSelector(s *bittorrent.Service) gin.HandlerFunc
- func ContextAssignTMDBSelector(s *bittorrent.Service, media string) gin.HandlerFunc
- func ContextPlaySelector(s *bittorrent.Service) gin.HandlerFunc
- func DeauthorizeTrakt(ctx *gin.Context)
- func Donate(ctx *gin.Context)
- func Download(s *bittorrent.Service) gin.HandlerFunc
- func DownloadAllTorrent(s *bittorrent.Service) gin.HandlerFunc
- func GetCachedTorrents(tmdbID string) ([]*bittorrent.TorrentFile, error)
- func GetEpisodeLabels(showID, seasonNumber, episodeNumber int) (item *xbmc.ListItem, err error)
- func GetMovieLabels(tmdbID string) (item *xbmc.ListItem, err error)
- func GetSearchLabels(s *bittorrent.Service, tmdbID string, idx string) (item *xbmc.ListItem, err error)
- func GetTorrentFromParam(s *bittorrent.Service, param string) (*bittorrent.Torrent, error)
- func History(ctx *gin.Context)
- func HistoryClear(ctx *gin.Context)
- func HistoryRemove(ctx *gin.Context)
- func IMDBTop250(ctx *gin.Context)
- func InTorrentsHistory(infohash string) *bittorrent.TorrentFile
- func InTorrentsMap(xbmcHost *xbmc.XBMCHost, tmdbID string) *bittorrent.TorrentFile
- func Index(s *bittorrent.Service) gin.HandlerFunc
- func InfoLabelsEpisode(s *bittorrent.Service) gin.HandlerFunc
- func InfoLabelsMovie(s *bittorrent.Service) gin.HandlerFunc
- func InfoLabelsSearch(s *bittorrent.Service) gin.HandlerFunc
- func InfoLabelsStored(s *bittorrent.Service) gin.HandlerFunc
- func ListTorrents(s *bittorrent.Service) gin.HandlerFunc
- func ListTorrentsWeb(s *bittorrent.Service) gin.HandlerFunc
- func MenuAdd(ctx *gin.Context)
- func MenuRemove(ctx *gin.Context)
- func MoveTorrent(s *bittorrent.Service) gin.HandlerFunc
- func MovieCountries(ctx *gin.Context)
- func MovieElementumLibrary(ctx *gin.Context)
- func MovieGenres(ctx *gin.Context)
- func MovieLanguages(ctx *gin.Context)
- func MovieLibrary(ctx *gin.Context)
- func MovieLinks(action string, s *bittorrent.Service) gin.HandlerFunc
- func MovieRun(action string, s *bittorrent.Service) gin.HandlerFunc
- func MoviesIndex(ctx *gin.Context)
- func MoviesMostVoted(ctx *gin.Context)
- func MoviesTraktLists(ctx *gin.Context)
- func Notification(s *bittorrent.Service) gin.HandlerFunc
- func OpenCustomPath(ctx *gin.Context)
- func Pastebin(ctx *gin.Context)
- func PauseSession(s *bittorrent.Service) gin.HandlerFunc
- func PauseTorrent(s *bittorrent.Service) gin.HandlerFunc
- func Play(s *bittorrent.Service) gin.HandlerFunc
- func PlayMovie(s *bittorrent.Service) gin.HandlerFunc
- func PlayShow(s *bittorrent.Service) gin.HandlerFunc
- func PlayTorrent(ctx *gin.Context)
- func PlayURI(s *bittorrent.Service) gin.HandlerFunc
- func PopularMovies(ctx *gin.Context)
- func PopularShows(ctx *gin.Context)
- func ProviderCheck(ctx *gin.Context)
- func ProviderDisable(ctx *gin.Context)
- func ProviderEnable(ctx *gin.Context)
- func ProviderFailure(ctx *gin.Context)
- func ProviderGetEpisode(ctx *gin.Context)
- func ProviderGetMovie(ctx *gin.Context)
- func ProviderList(ctx *gin.Context)
- func ProviderSettings(ctx *gin.Context)
- func ProvidersDisableAll(ctx *gin.Context)
- func ProvidersEnableAll(ctx *gin.Context)
- func RecentEpisodes(ctx *gin.Context)
- func RecentMovies(ctx *gin.Context)
- func RecentShows(ctx *gin.Context)
- func Reload(s *bittorrent.Service) gin.HandlerFunc
- func RemoveMovie(ctx *gin.Context)
- func RemoveMovieFromCollection(ctx *gin.Context)
- func RemoveMovieFromWatchlist(ctx *gin.Context)
- func RemoveShow(ctx *gin.Context)
- func RemoveShowFromCollection(ctx *gin.Context)
- func RemoveShowFromWatchlist(ctx *gin.Context)
- func RemoveTorrent(s *bittorrent.Service) gin.HandlerFunc
- func ResetCustomPath(ctx *gin.Context)
- func ResetPath(ctx *gin.Context)
- func Restart(shutdown func(code int)) gin.HandlerFunc
- func ResumeSession(s *bittorrent.Service) gin.HandlerFunc
- func ResumeTorrent(s *bittorrent.Service) gin.HandlerFunc
- func Routes(s *bittorrent.Service, shutdown func(code int)) *gin.Engine
- func Search(s *bittorrent.Service) gin.HandlerFunc
- func SearchClear(ctx *gin.Context)
- func SearchMovies(ctx *gin.Context)
- func SearchRemove(ctx *gin.Context)
- func SearchShows(ctx *gin.Context)
- func SelectFileTorrent(s *bittorrent.Service, isPlay bool) gin.HandlerFunc
- func SelectLanguage(ctx *gin.Context)
- func SelectNetworkInterface(ctx *gin.Context)
- func SelectSecondLanguage(ctx *gin.Context)
- func SelectStrmLanguage(ctx *gin.Context)
- func SelectTraktUserList(ctx *gin.Context)
- func SetCachedTorrents(tmdbID string, torrents []*bittorrent.TorrentFile) error
- func SetViewMode(ctx *gin.Context)
- func Settings(ctx *gin.Context)
- func ShowEpisodeLinks(action string, s *bittorrent.Service) gin.HandlerFunc
- func ShowEpisodeRun(action string, s *bittorrent.Service) gin.HandlerFunc
- func ShowEpisodes(ctx *gin.Context)
- func ShowSeasonLinks(action string, s *bittorrent.Service) gin.HandlerFunc
- func ShowSeasonRun(action string, s *bittorrent.Service) gin.HandlerFunc
- func ShowSeasons(ctx *gin.Context)
- func Shutdown(shutdown func(code int)) gin.HandlerFunc
- func Status(s *bittorrent.Service) gin.HandlerFunc
- func SubtitleGet(ctx *gin.Context)
- func SubtitlesIndex(s *bittorrent.Service) gin.HandlerFunc
- func TVCountries(ctx *gin.Context)
- func TVElementumLibrary(ctx *gin.Context)
- func TVGenres(ctx *gin.Context)
- func TVIndex(ctx *gin.Context)
- func TVLanguages(ctx *gin.Context)
- func TVLibrary(ctx *gin.Context)
- func TVMostVoted(ctx *gin.Context)
- func TVTraktLists(ctx *gin.Context)
- func ToggleWatched(media string, setWatched bool) gin.HandlerFunc
- func TopRatedMovies(ctx *gin.Context)
- func TopRatedShows(ctx *gin.Context)
- func TopTraktLists(ctx *gin.Context)
- func TraktAllMovies(ctx *gin.Context)
- func TraktAllNewShows(ctx *gin.Context)
- func TraktAllPremieres(ctx *gin.Context)
- func TraktAllReleases(ctx *gin.Context)
- func TraktAllShows(ctx *gin.Context)
- func TraktBoxOffice(ctx *gin.Context)
- func TraktHistoryMovies(ctx *gin.Context)
- func TraktHistoryShows(ctx *gin.Context)
- func TraktMostAnticipatedMovies(ctx *gin.Context)
- func TraktMostAnticipatedShows(ctx *gin.Context)
- func TraktMostCollectedMovies(ctx *gin.Context)
- func TraktMostCollectedShows(ctx *gin.Context)
- func TraktMostPlayedMovies(ctx *gin.Context)
- func TraktMostPlayedShows(ctx *gin.Context)
- func TraktMostWatchedMovies(ctx *gin.Context)
- func TraktMostWatchedShows(ctx *gin.Context)
- func TraktMyMovies(ctx *gin.Context)
- func TraktMyNewShows(ctx *gin.Context)
- func TraktMyPremieres(ctx *gin.Context)
- func TraktMyReleases(ctx *gin.Context)
- func TraktMyShows(ctx *gin.Context)
- func TraktPopularMovies(ctx *gin.Context)
- func TraktPopularShows(ctx *gin.Context)
- func TraktProgressShows(ctx *gin.Context)
- func TraktRecommendationsMovies(ctx *gin.Context)
- func TraktRecommendationsShows(ctx *gin.Context)
- func TraktTrendingMovies(ctx *gin.Context)
- func TraktTrendingShows(ctx *gin.Context)
- func URLForHTTP(pattern string, args ...interface{}) string
- func URLForXBMC(pattern string, args ...interface{}) string
- func URLQuery(route string, query ...string) string
- func UnDownloadAllTorrent(s *bittorrent.Service) gin.HandlerFunc
- func UnduplicateLibrary(ctx *gin.Context)
- func UpdateLibrary(ctx *gin.Context)
- func UpdateTrakt(ctx *gin.Context)
- func UserlistMovies(ctx *gin.Context)
- func UserlistShows(ctx *gin.Context)
- func Versions(s *bittorrent.Service) gin.HandlerFunc
- func WatchlistMovies(ctx *gin.Context)
- func WatchlistShows(ctx *gin.Context)
- type Addon
- type ByEnabled
- type ByStatus
- type Menu
- type MenuItem
- type PasteFields
- type PasteProject
- type TorrentsWeb
Constants ¶
This section is empty.
Variables ¶
var ( // MovieMenu represents Custom Movie menu MovieMenu = Menu{Name: "MovieMenu"} // TVMenu represents Custom TV menu TVMenu = Menu{Name: "TVMenu"} )
Functions ¶
func AddToTorrentsMap ¶
func AddToTorrentsMap(tmdbID string, torrent *bittorrent.TorrentFile)
AddToTorrentsMap ...
func AssignTorrent ¶
func AssignTorrent(s *bittorrent.Service) gin.HandlerFunc
AssignTorrent assigns torrent by its id to elementum's item by its TMDB id
func Auth ¶
func Auth() gin.HandlerFunc
Auth middleware allows all external source to request data from Elementum
func CORS ¶
func CORS() gin.HandlerFunc
CORS allows all external source to request data from Elementum
func ClearDatabaseDeletedMovies ¶
ClearDatabaseDeletedMovies ...
func ClearDatabaseDeletedShows ¶
ClearDatabaseDeletedShows ...
func ClearDatabaseSearchHistory ¶
ClearDatabaseSearchHistory ...
func ClearDatabaseTorrentHistory ¶
ClearDatabaseTorrentHistory ...
func ContextActionFromKodiLibrarySelector ¶
func ContextActionFromKodiLibrarySelector(s *bittorrent.Service) gin.HandlerFunc
ContextActionFromKodiLibrarySelector does action for media in Kodi library (by Kodi library ID)
func ContextAssignKodiSelector ¶
func ContextAssignKodiSelector(s *bittorrent.Service) gin.HandlerFunc
ContextAssignKodiSelector assigns torrent to movie/episode by Kodi library ID
func ContextAssignTMDBSelector ¶
func ContextAssignTMDBSelector(s *bittorrent.Service, media string) gin.HandlerFunc
ContextAssignTMDBSelector assigns torrent to media by TMDB ID
func ContextPlaySelector ¶
func ContextPlaySelector(s *bittorrent.Service) gin.HandlerFunc
ContextPlaySelector plays/downloads/toggles_watched media from Kodi in elementum
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 ¶
GetEpisodeLabels returns ListItem for an episode
func GetMovieLabels ¶
GetMovieLabels returns ListItem for a movie
func GetSearchLabels ¶
func GetSearchLabels(s *bittorrent.Service, tmdbID string, idx string) (item *xbmc.ListItem, err error)
GetSearchLabels returns ListItem for a search query
func GetTorrentFromParam ¶
func GetTorrentFromParam(s *bittorrent.Service, param string) (*bittorrent.Torrent, error)
GetTorrentFromParam ...
func InTorrentsHistory ¶
func InTorrentsHistory(infohash string) *bittorrent.TorrentFile
InTorrentsHistory ...
func InTorrentsMap ¶
func InTorrentsMap(xbmcHost *xbmc.XBMCHost, tmdbID string) *bittorrent.TorrentFile
InTorrentsMap ...
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 ListTorrentsWeb ¶
func ListTorrentsWeb(s *bittorrent.Service) gin.HandlerFunc
ListTorrentsWeb ...
func MovieLinks ¶
func MovieLinks(action string, s *bittorrent.Service) gin.HandlerFunc
MovieLinks ...
func Notification ¶
func Notification(s *bittorrent.Service) gin.HandlerFunc
Notification serves callbacks from Kodi
func Reload ¶
func Reload(s *bittorrent.Service) gin.HandlerFunc
func RemoveMovieFromCollection ¶
RemoveMovieFromCollection ...
func RemoveMovieFromWatchlist ¶
RemoveMovieFromWatchlist ...
func RemoveShowFromCollection ¶
RemoveShowFromCollection ...
func RemoveShowFromWatchlist ¶
RemoveShowFromWatchlist ...
func Restart ¶
func Restart(shutdown func(code int)) gin.HandlerFunc
func SelectFileTorrent ¶
func SelectFileTorrent(s *bittorrent.Service, isPlay bool) gin.HandlerFunc
SelectFileTorrent ...
func SelectNetworkInterface ¶
SelectNetworkInterface ...
func SetCachedTorrents ¶
func SetCachedTorrents(tmdbID string, torrents []*bittorrent.TorrentFile) error
SetCachedTorrents caches torrent search results in cache
func ShowEpisodeLinks ¶
func ShowEpisodeLinks(action string, s *bittorrent.Service) gin.HandlerFunc
ShowEpisodeLinks ...
func ShowEpisodeRun ¶
func ShowEpisodeRun(action string, s *bittorrent.Service) gin.HandlerFunc
ShowEpisodeRun ...
func ShowSeasonLinks ¶
func ShowSeasonLinks(action string, s *bittorrent.Service) gin.HandlerFunc
ShowSeasonLinks ...
func ShowSeasonRun ¶
func ShowSeasonRun(action string, s *bittorrent.Service) gin.HandlerFunc
ShowSeasonRun ...
func Shutdown ¶
func Shutdown(shutdown func(code int)) gin.HandlerFunc
func ToggleWatched ¶
func ToggleWatched(media string, setWatched bool) gin.HandlerFunc
ToggleWatched mark as watched or unwatched in Trakt and Kodi library
func TraktMostAnticipatedMovies ¶
TraktMostAnticipatedMovies ...
func TraktMostAnticipatedShows ¶
TraktMostAnticipatedShows ...
func TraktMostCollectedMovies ¶
TraktMostCollectedMovies ...
func TraktMostCollectedShows ¶
TraktMostCollectedShows ...
func TraktMostWatchedMovies ¶
TraktMostWatchedMovies ...
func TraktRecommendationsMovies ¶
TraktRecommendationsMovies ...
func TraktRecommendationsShows ¶
TraktRecommendationsShows ...
func UnDownloadAllTorrent ¶
func UnDownloadAllTorrent(s *bittorrent.Service) gin.HandlerFunc
UnDownloadAllTorrent ...
Types ¶
type Menu ¶
type Menu struct { Name string `json:"name"` AddItems []*MenuItem `json:"add_items"` RemoveItems []*MenuItem `json:"remove_items"` }
Menu ...
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"` AddedTime int64 `json:"added_time"` Size string `json:"size"` SizeBytes int64 `json:"size_bytes"` Status string `json:"status"` StatusCode int `json:"status_code"` 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"` TotalDownload float64 `json:"total_download"` TotalUpload float64 `json:"total_upload"` Seeders int `json:"seeders"` SeedersTotal int `json:"seeders_total"` Peers int `json:"peers"` PeersTotal int `json:"peers_total"` }
TorrentsWeb ...