episodes

package
v62.0.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractEpisodeID

func ExtractEpisodeID(title string, seasonal bool) (string, error)

ExtractEpisodeID generates the episode id from a show title

func New

func New(db *storm.DB, title, showID, episodeID, magnetlink string, downloaded, downloading bool) (string, error)

New adds an episode and returns if it was successful

func NewEnough

func NewEnough(db *storm.DB, id string, minimal int64, seasonal bool) bool

NewEnough checks a episodeid for newenoughiness

Types

type Episode

type Episode struct {
	ID          string
	Title       string
	Showid      string
	Added       int64
	Magnetlink  string
	Episodeid   string
	Downloaded  bool
	Downloading bool
}

Episode is the struct that holds an episode

func All

func All(db *storm.DB) ([]Episode, error)

All returns all events

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL