Documentation
¶
Overview ¶
Package bukanir streams movies from bittorrent magnet links
Index ¶
- Constants
- Variables
- func AutoComplete(query string, limit int) (string, error)
- func Cancel()
- func Cast(id int, limit int, force int, cacheDir string, cacheDays int64, tpbHost string) (string, error)
- func Category(category int, limit int, force int, cacheDir string, cacheDays int64, ...) (string, error)
- func Crew(id int, limit int, force int, cacheDir string, cacheDays int64, tpbHost string) (string, error)
- func Genre(id int, limit int, force int, cacheDir string, cacheDays int64, tpbHost string) (string, error)
- func Genres() (string, error)
- func IsValidCategory(category int) bool
- func Languages() string
- func NewEztv(host string) *eztv
- func NewTmdb(api_key string) *tmdb
- func NewTor(user, port, ctrlPort, dataDir string) *tor
- func NewTpb(host string) *tpb
- func Popular() (string, error)
- func Search(query string, limit int, force int, cacheDir string, cacheDays int64, ...) (string, error)
- func SetVerbose(v bool)
- func Subtitle(movie string, year string, release string, language string, category int, ...) (string, error)
- func Summary(id int, category int, season int, episode int) (string, error)
- func TopRated() (string, error)
- func TorRunning() bool
- func TorStart() error
- func TorStop() error
- func TorrentFiles() (string, error)
- func TorrentLargestFile() string
- func TorrentRunning() bool
- func TorrentShutdown()
- func TorrentStartup(config string)
- func TorrentStatus() (string, error)
- func TorrentStop()
- func TorrentWaitStartup() bool
- func Trailer(videoId string) (string, error)
- func UnzipSubtitle(url string, dest string) (string, error)
- type ByScore
- type BySeasonEpisode
- type BySeeders
- type ByTSeeders
- type Config
- type FileStatusInfo
- type LsInfo
- type SessionStatus
- type TConfig
- type TFileInfo
- type TGenre
- type TItem
- type TLsInfo
- type TMovie
- type TStatus
- type TSubtitle
- type TSummary
- type TTorrent
Constants ¶
View Source
const ( CategoryMovies = 201 CategoryHDmovies = 207 CategoryTV = 205 CategoryHDTV = 208 )
Movies categories
View Source
const ( LibName = "libtorrent-rasterbar" LibVersion = lt.LIBTORRENT_VERSION )
View Source
const (
Version = "2.5"
)
Constants
Variables ¶
View Source
var Categories = []int{ CategoryMovies, CategoryHDmovies, CategoryTV, CategoryHDTV, }
Movies categories
View Source
var EztvHosts = []string{
"eztv.re",
"eztv.ag",
"eztv.wf",
"eztv.tf",
"eztv.yt",
}
EZTV hosts
View Source
var TpbHosts = []string{
"apibay.org",
}
TPB hosts
View Source
var TpbTor string = "piratebayo3klnzokct3wt5yyxb2vpebbuyjl7m623iaxmqhsd52coid.onion"
TPB onion url
Functions ¶
func AutoComplete ¶
AutoComplete completes search queries
func Cast ¶
func Cast(id int, limit int, force int, cacheDir string, cacheDays int64, tpbHost string) (string, error)
Cast returns movies by cast
func Category ¶
func Category(category int, limit int, force int, cacheDir string, cacheDays int64, tpbHost string) (string, error)
Category returns movies by category
func Crew ¶
func Crew(id int, limit int, force int, cacheDir string, cacheDays int64, tpbHost string) (string, error)
Crew returns movies by crew
func Genre ¶
func Genre(id int, limit int, force int, cacheDir string, cacheDays int64, tpbHost string) (string, error)
Genre returns movies by genre
func IsValidCategory ¶
IsValidCategory checks if category is valid
func Search ¶
func Search(query string, limit int, force int, cacheDir string, cacheDays int64, pages int, tpbHost, eztvHost, sortBy, media string) (string, error)
Search returns movies by search query
func Subtitle ¶
func Subtitle(movie string, year string, release string, language string, category int, season int, episode int, imdbID string) (string, error)
Subtitle returns movie subtitles
func TorrentLargestFile ¶
func TorrentLargestFile() string
TorrentLargestFile returns largest file from torrent
func TorrentWaitStartup ¶
func TorrentWaitStartup() bool
TorrentWaitStartup waits for torrent to start
Types ¶
type BySeasonEpisode ¶
type BySeasonEpisode struct {
// contains filtered or unexported fields
}
Sort movies by season/episodes
func (*BySeasonEpisode) Len ¶
func (a *BySeasonEpisode) Len() int
func (*BySeasonEpisode) Less ¶
func (a *BySeasonEpisode) Less(i, j int) bool
func (*BySeasonEpisode) Sort ¶
func (a *BySeasonEpisode) Sort(movies []TMovie)
func (*BySeasonEpisode) Swap ¶
func (a *BySeasonEpisode) Swap(i, j int)
type ByTSeeders ¶
type ByTSeeders []TTorrent
Sort torrents by seeders
func (ByTSeeders) Len ¶
func (a ByTSeeders) Len() int
func (ByTSeeders) Less ¶
func (a ByTSeeders) Less(i, j int) bool
func (ByTSeeders) Swap ¶
func (a ByTSeeders) Swap(i, j int)
type Config ¶
type Config struct { Uri string `json:"uri"` BindAddress string `json:"bind_address"` FileIndex int `json:"file_index"` MaxUploadRate int `json:"max_upload_rate"` MaxDownloadRate int `json:"max_download_rate"` DownloadPath string `json:"download_path"` UserAgent string `json:"user_agent"` KeepFiles bool `json:"keep_files"` Encryption int `json:"encryption"` NoSparseFile bool `json:"no_sparse_file"` PeerConnectTimeout int `json:"peer_connect_timeout"` RequestTimeout int `json:"request_timeout"` TorrentConnectBoost int `json:"torrent_connect_boost"` ConnectionSpeed int `json:"connection_speed"` ListenPort int `json:"listen_port"` MinReconnectTime int `json:"min_reconnect_time"` MaxFailCount int `json:"max_fail_count"` RandomPort bool `json:"random_port"` DhtRouters string `json:"dht_routers"` Trackers string `json:"trackers"` Proxy bool `json:"proxy"` ProxyHost string `json:"proxy_host"` ProxyPort int `json:"proxy_port"` Verbose bool `json:"verbose"` }
type FileStatusInfo ¶
type LsInfo ¶
type LsInfo struct {
Files []FileStatusInfo `json:"files"`
}
type SessionStatus ¶
type SessionStatus struct { Name string `json:"name"` State int `json:"state"` StateStr string `json:"state_str"` Error string `json:"error"` Progress float32 `json:"progress"` DownloadRate float32 `json:"download_rate"` UploadRate float32 `json:"upload_rate"` TotalDownload int64 `json:"total_download"` TotalUpload int64 `json:"total_upload"` NumPeers int `json:"num_peers"` NumSeeds int `json:"num_seeds"` TotalSeeds int `json:"total_seeds"` TotalPeers int `json:"total_peers"` }
type TMovie ¶
type TMovie struct { Id int `json:"id"` Title string `json:"title"` Year string `json:"year"` PosterSmall string `json:"posterSmall"` PosterMedium string `json:"posterMedium"` PosterLarge string `json:"posterLarge"` PosterXLarge string `json:"posterXLarge"` Size int64 `json:"size"` SizeHuman string `json:"sizeHuman"` Seeders int `json:"seeders"` MagnetLink string `json:"magnetLink"` Release string `json:"release"` Category int `json:"category"` Season int `json:"season"` Episode int `json:"episode"` Quality string `json:"quality"` }
TMovie type
type TSubtitle ¶
type TSubtitle struct { Id string `json:"id"` Title string `json:"title"` Year string `json:"year"` Release string `json:"release"` DownloadLink string `json:"downloadLink"` Score float64 `json:"score"` }
TSubtitle type
type TSummary ¶
type TSummary struct { Id int `json:"id"` Cast []string `json:"cast"` CastIds []int `json:"castIds"` Genre []string `json:"genre"` Video string `json:"video"` Director string `json:"director"` DirectorId int `json:"directorId"` Rating float64 `json:"rating"` TagLine string `json:"tagline"` Overview string `json:"overview"` Runtime int `json:"runtime"` ImdbId string `json:"imdbId"` }
TSummary type
Click to show internal directories.
Click to hide internal directories.