Documentation ¶
Index ¶
- func New(db *storm.DB, name, regexp string, seasonal, active bool, minimal int64) (string, error)
- func ToProtoShows(shows []Show) *golpje.ProtoShows
- type Show
- func (s Show) AddDownload(db *storm.DB, title, magnetlink string) (string, error)
- func (s Show) AddEpisode(db *storm.DB, title string) (string, error)
- func (s Show) Delete(db *storm.DB) error
- func (s Show) DeleteAllEpisodes(db *storm.DB) error
- func (s Show) GetSeasonDir(title, showBasePath string) string
- func (s Show) Path(showBasePath string) string
- func (s Show) Print(db *storm.DB)
- func (s Show) SetDownloadFailed(db *storm.DB, title string) error
- func (s Show) SetDownloaded(db *storm.DB, title string) error
- func (s Show) ShouldDownload(db *storm.DB, title string) (bool, error)
- func (s Show) ToProto() *golpje.ProtoShow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToProtoShows ¶
func ToProtoShows(shows []Show) *golpje.ProtoShows
ToProtoShows returns a proto shows from a single show
Types ¶
type Show ¶
Show a local alias of the protobuf Show
func GetFromName ¶
GetFromName retrieve a show from an UUID
func (Show) AddDownload ¶
AddDownload adds an episode to a show
func (Show) AddEpisode ¶
AddEpisode adds an episode from the filesystem to a show
func (Show) DeleteAllEpisodes ¶
DeleteAllEpisodes removes all episodes from the datastore
func (Show) GetSeasonDir ¶
GetSeasonDir returns the seasonal directory where episodes with given title are stored
func (Show) SetDownloadFailed ¶
SetDownloadFailed changes the state of an episode to downloaded
func (Show) SetDownloaded ¶
SetDownloaded changes the state of an episode to downloaded
func (Show) ShouldDownload ¶
ShouldDownload returns if the episode has not been downloaded yet and still should
Click to show internal directories.
Click to hide internal directories.