Documentation
¶
Index ¶
Constants ¶
View Source
const ( // FollowTypeLatest follow lastest episode FollowTypeLatest = "latest" // FollowTypeSince follow since season N FollowTypeSince = "since" // FollowTypeAll follow all the episodes of the series FollowTypeAll = "all" // FollowTypeManual desactivate couch from follow this show FollowTypeManual = "manual" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppConfiguration ¶
type AppConfiguration struct {
Name string `json:"name,omitempty"`
ShowsDir string `json:"media_dir,omitempty"`
ShowsDirs []string `json:"media_directories,omitempty"`
MoviesDir string `json:"movies_dir,omitempty"`
OmdbAPIKey string `json:"omdb_api_key"`
TransmissionHost string `json:"transmission_host"`
TransmissionPort string `json:"transmission_port"`
TransmissionAuth string `json:"transmission_auth"`
}
AppConfiguration couchness app configuration
type FollowService ¶
type FollowService interface {
GetID() string
GetURL() string
ShowURL(showID string, page int, limit int) string
GetShowData(show *Show, page int, limit int, typeOf string) (*Show, error)
}
FollowService follow service definition
type Movie ¶ added in v0.2.0
type Movie struct {
Show
TorrentInfo
}
func (*Movie) PrintString ¶ added in v0.2.0
PrintString covert show data into string
type Show ¶
type Show struct {
// sync.RWMutex
ID string `json:"id"`
Title string `json:"title"`
ExternalID string `json:"external-id"`
Directory string `json:"directory"`
TorrentCount int `json:"torrents_count,omitempty"`
EpisodesCount int `json:"episodes_count,omitempty"`
Configuration *ShowConf `json:"configuration"`
Episodes Episodes `json:"episodes,omitempty"`
}
Show how a show is defined
func (*Show) PrintString ¶
PrintString covert show data into string
type ShowConf ¶
type ShowConf struct {
FollowType string `json:"follow_type"`
Services []string `json:"services,omitempty"`
Service string `json:"service"`
Since int `json:"since"`
Quality string `json:"quality"`
Codec string `json:"codec"`
Resolution string `json:"resolution"`
FilterBy string `json:"filter-by"`
}
ShowConf show configuration
type TorrentInfo ¶
type TorrentInfo struct {
Title string `json:"-"`
Name string `json:"-"`
Extension string `json:"extension"`
Location string `json:"location"`
MagnetURL string `json:"magnet_url,omitempty"`
Downloaded bool `json:"downloaded,omitempty"`
Seeds int `json:"seeds,omitempty"`
Season int `json:"season,omitempty"`
Episode int `json:"episode,omitempty"`
Year int `json:"year,omitempty"`
Resolution string `json:"resolution,omitempty"`
Quality string `json:"quality,omitempty"`
Codec string `json:"codec,omitempty"`
Audio string `json:"audio,omitempty"`
Group string `json:"group,omitempty"`
Region string `json:"region,omitempty"`
Extended bool `json:"extended,omitempty"`
Hardcoded bool `json:"hardcoded,omitempty"`
Proper bool `json:"proper,omitempty"`
Repack bool `json:"repack,omitempty"`
Container string `json:"container,omitempty"`
Widescreen bool `json:"widescreen,omitempty"`
Website string `json:"website,omitempty"`
Language string `json:"language,omitempty"`
Sbs string `json:"sbs,omitempty"`
Unrated bool `json:"unrated,omitempty"`
Size int64 `json:"size,omitempty"`
ThreeD bool `json:"3d,omitempty"`
}
TorrentInfo is the resulting structure returned by Parse
func (*TorrentInfo) Summary ¶ added in v0.2.0
func (torrent *TorrentInfo) Summary() string
Click to show internal directories.
Click to hide internal directories.