Documentation ¶
Index ¶
- Variables
- func Add(show *models.Show) (*models.Show, error)
- func Download(showID string) error
- func DownloadLatest(show *models.Show) (*transmission.Torrent, error)
- func DownloadShow(show *models.Show) error
- func DownloadTorrent(magnetURL, destination string) (*transmission.Torrent, error)
- func Scan(folder string, i, r bool) ([]*models.Show, error)
- func ScanShowDir(dir string, show *models.Show) (*models.Show, error)
- func SearchAndSelectOnImdb(title string) (string, string, string, error)
- type OmdbResponse
- type OmdbResults
Constants ¶
This section is empty.
Variables ¶
View Source
var FollowServices = map[string]models.FollowService{ showrss.ServiceType: showRssService, eztv.ServiceType: eztvService, }
FollowServices map all types of services
Functions ¶
func DownloadLatest ¶
func DownloadLatest(show *models.Show) (*transmission.Torrent, error)
DownloadLatest download last episode if is not already downloaded
func DownloadShow ¶
DownloadShow download show depending on show configuration
func DownloadTorrent ¶
func DownloadTorrent(magnetURL, destination string) (*transmission.Torrent, error)
DownloadTorrent use transmission to queue the torrent
func ScanShowDir ¶
ScanShowDir loads every episode from a series
Types ¶
type OmdbResponse ¶
type OmdbResponse struct { Search []OmdbResults TotalResults string `json:"totalResults"` }
OmdbResponse response from open movie database API
func SearchShowInfo ¶
func SearchShowInfo(showName string) (*OmdbResponse, error)
SearchShowInfo Search show information in omdb
Click to show internal directories.
Click to hide internal directories.